aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/RST.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-10 23:01:08 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-11 14:54:28 -0800
commit3c4a58bad03ef56ae9c82b7e7a6ae027514e2bd6 (patch)
tree9a071c2168938bf33f4002d6af523d090d63ef96 /src/Text/Pandoc/Readers/RST.hs
parentacc9afaf6f6afa14cbe7cd06798275728e78a529 (diff)
downloadpandoc-3c4a58bad03ef56ae9c82b7e7a6ae027514e2bd6.tar.gz
T.P.Class: Add getTimestamp [API change].
This attempts to read the SOURCE_DATE_EPOCH environment variable and parse a UTC time from it (treating it as a unix date stamp, see https://reproducible-builds.org/specs/source-date-epoch/). If the variable is not set or can't be parsed as a unix date stamp, then the function returns the current date.
Diffstat (limited to 'src/Text/Pandoc/Readers/RST.hs')
0 files changed, 0 insertions, 0 deletions