| Unit Grijjy.DateUtilsDescription
System level date/time utilities OverviewFunctions and ProceduresConstantsDescriptionFunctions and Procedures
| function goDateTimeToMillisecondsSinceEpoch(const AValue: TDateTime; const AInputIsUTC: Boolean): Int64; |  | 
Converts a date/time value to a number of milliseconds since the Unix epoch.
  
 Parameters
AValuethe date/time value to convert.AInputIsUTCwhether AValue is in UTC format. ReturnsThe number of milliseconds since the Unix epoch. |  
| function goToDateTimeFromMillisecondsSinceEpoch(const AValue: Int64; const AReturnUTC: Boolean): TDateTime; |  | 
Converts a number of milliseconds since the Unix epoch to a date/time value.
  
   Parameters
AValuenumber of milliseconds since the Unix epoch.AReturnUTCwhether to return the corresponding date/time value in local time (False) or universal time (True). ReturnsThe date/time value. Exceptions raised
EArgumentOutOfRangeExceptionif AValue cannot be accurately converted to a date/time value |  
| function goDateTimeToTicks(const AValue: TDateTime; const AInputIsUTC: Boolean): Int64; |  | 
Converts a date/time value to a number of ticks that has passed since midnight, January 1, 0001 UTC.
  
  There are 10,000 ticks in a milliseconds (or 10 million ticks in a second). Parameters
AValuethe date/time value to convert.AInputIsUTCwhether AValue is in UTC format. ReturnsThe number of ticks. |  
| function goDateTimeFromTicks(const AValue: Int64; const AReturnUTC: Boolean): TDateTime; |  | 
Converts a number of ticks that has passed since midnight, January 1, 0001 UTC to a date/time value.
  
  There are 10,000 ticks in a milliseconds (or 10 million ticks in a second). Parameters
AValuethe number of ticks.AReturnUTCwhether to return the corresponding date/time value in local time (False) or universal time (True). ReturnsThe date/time value. |  Constants
| MIN_MILLISECONDS_SINCE_EPOCH = -62135596800000; |  | 
The minimum and maximum number of milliseconds since the Unix epoch that we can use to convert to and from a TDateTime value without loss in precision. Note that Delphi's TDateTime type can safely handle a larger range of milliseconds, but other languages may not. |  
| MAX_MILLISECONDS_SINCE_EPOCH = 253402300799999; |  |  |  Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26
 |