Mono Class Library: Mono.Unix.Native.NativeConvert Overview | Members

Mono.Unix.Native.NativeConvert.FromDateTime Method

Converts a DateTime into a Unix time_t. [Edit]

public static long FromDateTime (DateTime time)

See Also

NativeConvert.ToTimeT

Parameters

time
A DateTime in the user's current time zone. [Edit]

Returns

The converted DateTime [Edit]

Remarks

A Unix time_t stores the number of seconds that have elapsed since Midnight of January 1, 1970, UTC. [Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0