Seems to me all you need is a function that converts a float
into the (high . low) form Emacs wants. Then feed that to
format-time-string. Or format-time-string can be made to accept
a float and do the conversion to time_t internally.
Using floats to represent integral values seems to lose accuracy
somewhere above 9e15 on my 486 box, which gives us 285 million
more years before we need worry again. I will make a note to
remind you then.
SL Baur writes:
I agree. Comments?
Bob Weiner <weiner(a)altrasoft.com> writes:
>> It would be really nice if format-time-string could take this format
>> (date in seconds since 1970) as an input and output a formatted date
>> from it.
> Said another way, the emacs_strftime should be converted to a Lisp subr and
> the system type `time_t' should be made into a Lisp type with easy back and
> forth conversion operators where needed. Then we'd have pretty much native
> UNIX time handling. Right now, I can't see a clear way to convert a given
> UNIX time to a formatted date.
> Bob
--
頭隠して尻隠さず