TimeJulToYmd

Returns the datetime given a Julian day.

Syntax:

TimeJulToYmd(julian-date)

Parameters:

(i) julian-date a Julian date.

Returns:

(s) the datetime corresponding to the specified Julian date.

 

This function converts the specified (numeric) Julian date value to a datetime in YmdHms format. The "Hms" (hours, minutes, seconds) portion of the returned YmdHms string will always be "00:00:00".

IntControl 41 can be used to control YmdHms format returned by time functions.

Example:


today = TimeYmdHms( )
jul_today = TimeJulianDay(today)
jul_lastweek = jul_today - 7
lastweek = TimeJulToYmd(jul_lastweek)
FileTimeSet("stuff.txt", lastweek)
Message("TimeJulToYmd","Done.")
See Also:

TimeJulianDay, IntControl 41