From 4a3bbead361b7c58c8259c3fcfc13a04866fd622 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 28 Mar 2022 19:49:46 -0400 Subject: datetime: Don't use mktime()/localtime() shortcuts --- (limited to 'TODO') diff --git a/TODO b/TODO index 9c19fdc..a6a7beb 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,4 @@ -don't use mktime() shortcut in _datetime_normalize() - arg_tm in datetime_parse() is currently incorrect after normalization - this fixes that and avoids assuming that time_t is in single seconds - use difftime() - don't clobber now_tm +use difftime() in _datetime_normalize() datetime_parse()'s third arg should be a (struct tm *) if -d, printf() parsed time, not diff from epoch drop timegm() -- cgit v0.9.1