hare

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

commit 48d327cb46c2550c651e4099ba19fd36d84cf136
parent 300485dd6f51e3ebcdae09e50a8b80c013a2ca09
Author: Byron Torres <b@torresjrjr.com>
Date:   Sat, 23 Apr 2022 13:04:18 +0100

datetime: fix format string constants docs

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

Diffstat:
Mdatetime/format.ha | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/datetime/format.ha b/datetime/format.ha @@ -14,7 +14,8 @@ use time::chrono; // [[datetime::format]] string for the email date format. export def EMAIL: str = "%a, %d %b %Y %H:%M:%S %z"; -// [[datetime::format]] string for the email date format, with time zone. +// [[datetime::format]] string for the email date format, with zone offset and +// zone abbreviation. export def EMAILZ: str = "%a, %d %b %Y %H:%M:%S %z %Z"; // [[datetime::format]] string used by default for POSIX date(1). @@ -23,13 +24,13 @@ export def POSIX: str = "%a %b %d %H:%M:%S %Z %Y"; // [[datetime::format]] string compatible with RFC 3339. export def RFC3339: str = "%Y-%m-%dT%H:%M:%S%z"; -// [[datetime::format]] string providing the current timestamp. +// [[datetime::format]] string for a simple timestamp. export def STAMP: str = "%Y-%m-%d %H:%M:%S"; -// [[datetime::format]] string providing the current timestamp with nanoseconds. +// [[datetime::format]] string for a simple timestamp with nanoseconds. export def STAMP_NANO: str = "%Y-%m-%d %H:%M:%S.%N"; -// [[datetime::format]] string providing the current timestamp with nanoseconds, +// [[datetime::format]] string for a simple timestamp with nanoseconds, // zone offset, zone abbreviation, and locality. export def STAMP_NOZL: str = "%Y-%m-%d %H:%M:%S.%N %z %Z %L";