Bug#486594: timestamps

Louis Bettens louis at bettens.info
Sun Dec 1 17:44:13 UTC 2013


Booh !

Le 01. 12. 13 06:00, James McCoy a écrit :
> An alternative would be to use the faketime[0] tool to wrap your dch
> calls.

That's it ! I wondered if something like that existed. Thanks !

I also found out that dch could invoke date -d "@<1970-timestamp>".

> That does look useful, but if there aren't any side effects to setting
> LC_TIME, I'd prefer that over adding a dependency.  It's still simple
> enough code.

Can be. I would personally prefer using the package, "%a, %d %b %Y %T 
%z" isn't really meaningful, but you are the people who care for the 
script, so I let you decide. Feel free, I will make my program work with 
faketime if you reject 0002.

As you told Julian Gilbey and as far as I know, the three variants that 
exist get us to the same result. If setting LC_TIME affected something 
else than the call to strftime I'm messing with, There would probably be 
a mistake in the first place, since these tools shouldn't produce 
locale-dependent output, except for the timezone. Is this reasoning right ?

Big up,
Louis
-- 
When I grow up,
I will run a Tor node around the clock,
To help threatened protesters 'round the world.



More information about the devscripts-devel mailing list