summaryrefslogtreecommitdiffstats
path: root/src/builtin.jq
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2017-05-21 16:24:48 -0500
committerNicolas Williams <nico@cryptonector.com>2017-05-21 16:24:48 -0500
commitc538237f4e4c381d35f1c15497c95f659fd55850 (patch)
tree86ae2d701edc08d00507c600bdff879f0f10916e /src/builtin.jq
parent4a6241be0697bbe4ef420c43689c34af59e50330 (diff)
Deal with strptime() on OS X and *BSD (fix #1415)
strptime() on OS X and *BSDs (reputedly) does not set tm_wday and tm_yday unless corresponding %U and %j format specifiers were used. That can be... surprising when one parsed year, month, and day anyways. Glibc's strptime() conveniently sets tm_wday and tm_yday in those cases, but OS X's does not, ignoring them completely. This commit makes jq compute those where possible, though the day of week computation may be wrong for dates before 1900-03-01 or after 2099-12-31.
Diffstat (limited to 'src/builtin.jq')
0 files changed, 0 insertions, 0 deletions