EpochTime.GetIntDate(DateTime) 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.
Per JWT spec: Gets the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the desired date/time.
public static long GetIntDate (DateTime datetime);
static member GetIntDate : DateTime -> int64
Public Shared Function GetIntDate (datetime As DateTime) As Long
Parameters
- datetime
- DateTime
The DateTime to convert to seconds.
Returns
the number of seconds since Unix Epoch.
Remarks
if dateTimeUtc less than UnixEpoch, return 0
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla