hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 1a66514c1f3cead781ccdb28091f17263520473a
parent 3970e887b6943d0e796b0c1e04e483a90acc4a84
Author: Byron Torres <b@torresjrjr.com>
Date:   Sat,  8 Jan 2022 19:53:21 +0000

add format constants

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mdatetime/format.ha | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/datetime/format.ha b/datetime/format.ha @@ -7,7 +7,12 @@ use strings; use strio; use time::chrono; -export def ISO8601: str = "%FT%T"; +// TODO: implement modern long form "{year}-{month}-{day}" syntax alongside +// POSIX strftime "%Y-%m-%d" syntax. + +export def RFC3999: str = "%Y-%m-%dT%H:%M:%S%z"; +export def EMAIL: str = "%a, %d %b %Y %H:%M:%S %z"; +export def POSIX: str = "%a %b %e %H:%M:%S %Z %Y"; def WEEKDAYS: [_]str = [ "Monday",