Mono.Unix.Native
NativeConvert
FromDateTime
Mono.Unix.Native.NativeConvert.FromDateTime Method
Converts a
DateTime
into a Unix
time_t
.
Syntax
public static
long
FromDateTime
(
DateTime
time)
See Also
NativeConvert.ToTimeT
Parameters
time
A
DateTime
in the user's current time zone.
Returns
The converted
DateTime
Remarks
A Unix
time_t
stores the number of seconds that have elapsed since Midnight of January 1, 1970, UTC.
Requirements
Namespace:
Mono.Unix.Native
Assembly:
Mono.Posix (in Mono.Posix.dll)
Assembly Versions:
1.0.5000.0, 2.0.0.0, 4.0.0.0