The date is approaching (in fact, 2022-01-08), when Unix time turns 19000-days old. Currently, there is a way (namely, %s
) to display Unix second
in dates, but there seem to be no way to display Unix day
in date formatting. How does one display Unix day
in dates? If not possible, then how to introduce new date formatting symbol (%?
) symbol for it?
Why?
Epoch date is easy to compute just dividing
Unix seconds / 86400
, and works well as natural decimal time, where:1 dYear =
1000 days
, 1 dMonth =100 days
, 1 dWeek =10 days
,
1 dHour =0.1 days
, 1 dMinute =0.001 days
, 1 dSecond =0.00001 days
.Unix day
digits, unlikeUnix second
's digits, approximate lengths of ordinary concepts of time with less than 1 order of magnitude, thus work well asdecimal time and date
, where:
For example, now is Unix day = 18993.94830052069
means:
18993.94830052069
\ \\\ \ \ 30.052069 th decimal second
\ \\\ \ 48 th decimal minute
\ \\\ 9 th decimal hour
\ \\ 3 rd day of week
\ \ 9 th decimal week
\ 9 th decimal month
18 th decimal year
Unix day
, interpreted this way, has the benefit of convenience of use as natural support for decimal time, so some people use it and need it.
Ultimately, I'd like to know a path for incorporating this display of time as one of the supported ways of displaying date and time in *nix systems.