tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: control utc value used for :{gm,local}time



Christos Zoulas <christos%zoulas.com@localhost> wrote:

> On Jan 14,  1:37pm, sjg%juniper.net@localhost (Simon J Gerraty) wrote:
> -- Subject: make: control utc value used for :{gm,local}time
> 
> | The :gmtime and :localtime modifiers in make would be more useful if the
> | value of utc used could be controlled.
> | For example, using the mtime of a file obtained via 'stat -s'
> | 
> | The patch below allows for this - as the unit-test shows:
> 
> Sure, but why not generalize it and pass a timezone?

Doesn't really fit into strftime, or any of the other routines involved.
localtime() should deal with the common use case anyway.

Thanks
--sjg


Home | Main Index | Thread Index | Old Index