Anonymous user
Date manipulation: Difference between revisions
m
→{{header|REXX}}: added/changed comments and whitespace, changed indentations.
m (→{{header|REXX}}: added/changed comments and whitespace, changed indentations.) |
|||
Line 1,789:
=={{header|REXX}}==
This version only works with REXXes that support the '''
<lang REXX>/*REXX
aDate = 'March 7 2009 7:30pm EST' /*the original or base date to be used.*/
parse var
nMins = mins // 1440 /*compute number min into same/next day*/
nDate = date(,nBdays, 'B') /*calculate the new date (maybe). */
say aDate ' + 12 hours ───► ' ndate ntime tz /*display new timestamp.*/▼
nTime = time('C', nMins, "M") /* " " "
▲say aDate ' + 12 hours ───► ' ndate ntime tz /*display the new timestamp to console.*/
/*stick a fork in it, we're all done. */</lang>
{{out}}
<pre style="overflow:scroll">
|