tech-toolchain archive

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

Re: make: time stamps



On Sat, 9 Apr 2011 07:36:21 +0000, David Holland writes:
>Once again: how about using words as the modifier names?
>(thus, :localtime and :gmtime)

No strong objection, though I think a common prefix would help
keep the parsing simple.

fmt-localtime
fmt-gmtime

ftime-local
ftime-utc

?

> > $ bmake -r -V '${The time is %c:L:tU}' -V '${Which is %Y-%m-%d %T %Z:L:tL}'
>
>that is, to be honest, really ugly. :-(

The :tU or the rest?, normal usage would (for me at least)
involve a variable like:

TIME_STAMP_FMT= @ %s [%Y-%m-%d %T]


Home | Main Index | Thread Index | Old Index