Date manipulation: Difference between revisions

Content added Content deleted
(jq)
Line 919: Line 919:
'+12hrs in local time: ' + add12hours(inputDateString)
'+12hrs in local time: ' + add12hours(inputDateString)
);</lang>
);</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}}==
=={{header|Lasso}}==