Date manipulation: Difference between revisions
jq
m (→{{header|J}}) |
(jq) |
||
Line 919:
'+12hrs in local time: ' + add12hours(inputDateString)
);</lang>
=={{header|jq}}==
{{works with|jq|version with mktime}}
<lang jq>"March 7 2009 7:30pm EST"
| strptime("%B %d %Y %I:%M%p %Z")
| .[3] += 12
| mktime | strftime("%B %d %Y %I:%M%p %Z") </lang>
{{out}}
<lang sh>"March 08 2009 07:30AM EST"</lang>
=={{header|Lasso}}==
|