DateTimeOffset.ToUnixTimeMilliseconds Method
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 the number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.
public:
long ToUnixTimeMilliseconds();
public long ToUnixTimeMilliseconds ();
member this.ToUnixTimeMilliseconds : unit -> int64
Public Function ToUnixTimeMilliseconds () As Long
Returns
The number of milliseconds that have elapsed since 1970-01-01T00:00:00.000Z.
Remarks
Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). It does not take leap seconds into account. This method returns the number of milliseconds in Unix time.
This method first converts the current instance to UTC before returning the number of milliseconds in its Unix time. For date and time values before 1970-01-01T00:00:00Z, this method returns a negative value.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Tickets als Feedbackmechanismus für Inhalte auslaufen lassen und es durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter:Einreichen und Feedback anzeigen für