datetime - milliseconds datetime
datetime-tz - milliseconds datetime-tzThis example returns the date and time exactly 24 hours ago (dtTime). It then recalculates the number of hours (iHours) from the number of milliseconds (iMsec) since then and displays the result:
num-days = DATE(dt2) - DATE(dt1)
ASSIGNtemp-dttz = dt1TIMEZONE(temp-dttz) = TIMEZONE(dt2)num-days = DATE(dt2) – DATE(temp-dttz).
new-datetime = DATETIME( DATE(old-datetime) - days,MTIME (old-datetime) - milliseconds ).
new-datetime-tz = DATETIME-TZ( DATE(old-datetime-tz) - days,MTIME (old-datetime-tz) – milliseconds,TIMEZONE(old-dateime-tz) ).
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |