[ Jason L Tibbitts III writes: ]
>
> The problem: how do you get the date string (i.e. Mon04Nov1996) for
> yesterday? I would use the DateCalc module, but I suppose you could
> subtract a day's worth of seconds from &localtime and use that in a call to
> &ctime. Somebody would probably yell about leap seconds, though.
I don't think there are any mainstream OSes that take leap seconds into
account. Resetting the time from a master clock doesn't count, the OS
still doesn't know about leap seconds, it just thinks its clock drifted.
What you propose is the accepted way to compute delta dates.
--
Dave Wolfe
References:
|
|