Returns the datetime given a Julian day.
TimeJulToYmd(julian-date)
(i) julian-date a Julian date.
(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.
today = TimeYmdHms( ) jul_today = TimeJulianDay(today) jul_lastweek = jul_today - 7 lastweek = TimeJulToYmd(jul_lastweek) FileTimeSet("stuff.txt", lastweek) Message("TimeJulToYmd","Done.")