System.DateUtils.UnixToDateTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UnixToDateTime(const AValue: Int64; AReturnUTC: Boolean): TDateTime;

C++

extern DELPHI_PACKAGE System::TDateTime __fastcall UnixToDateTime(const __int64 AValue, bool AReturnUTC = true);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils System.DateUtils

Description

Converts a Unix/Linux style date-and-time value to a TDateTime value.

Call UnixToDateTime to convert the Unix/Linux encoding of a date and time value into the corresponding TDateTime.

Unix date-and-time values are encoded as the number of seconds since midnight at the start of January 1, 1970.

See Also


Code Examples