Calendar.TimeInMillis Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns this Calendar's current time as a long. -or- Sets this Calendar's current time from the given long value.
public virtual long TimeInMillis { [Android.Runtime.Register("getTimeInMillis", "()J", "GetGetTimeInMillisHandler", ApiSince=24)] get; [Android.Runtime.Register("setTimeInMillis", "(J)V", "GetSetTimeInMillis_JHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getTimeInMillis", "()J", "GetGetTimeInMillisHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setTimeInMillis", "(J)V", "GetSetTimeInMillis_JHandler", ApiSince=24)>]
member this.TimeInMillis : int64 with get, set
Property Value
the current time as UTC milliseconds from the epoch.
- Attributes
Remarks
Property getter documentation:
Returns this Calendar's current time as a long.
Java documentation for android.icu.util.Calendar.getTimeInMillis()
.
Property setter documentation:
Sets this Calendar's current time from the given long value. An IllegalIcuArgumentException is thrown when millis is outside the range permitted by a Calendar object when in strict mode. When in lenient mode the out of range values are pinned to their respective min/max.
Java documentation for android.icu.util.Calendar.setTimeInMillis(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.