URL:
<https://savannah.gnu.org/bugs/?61212>
Summary: feature request: split out time&date to read and
convert the time
Project: Gforth
Submitted by: phr
Submitted on: Thu 23 Sep 2021 09:13:15 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Currently there is a time&date word that reads the current time from the
system, and splits it out into s m h D M Y. I request splitting out the
conversion part to convert an arbitrary timestamp as returned from utime:
: convert-to-time&date ( utime -- s m h D M Y ) ... ;
: date&time ( -- s m h D M Y ) utime convert-to-time&date ;
The existing date&time still operates the same way to preserve compatibility,
but the conversion part is made visible for users.
Thanks -- Paul
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61212>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/