3.2.5 Time and date

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

3.2.5 Time and date


$(TDAY)
Current date in the form YYYYMMDD (for example 20051228)
$(TODAY)
Current date in the form YYYY-MM-DD (for example 2005-12-28)
$(NOW)
Timestamp in the form YYYY-MM-DD-hh.mm (for example 2005-12-28-07.15)
$(NOW_L)
] Timestamp in the form YYYY-MM-DD-hh.mm.ss (for example 2005-12-28-07.15.45)
$(WEEKDAY)
Plain language day of the week (for example ’Wednesday’)
$(TDAY_UTC), $(TODAY_UTC), $(NOW_UTC), $(NOW_L_UTC), $(WEEKDAY_UTC)
These are identical to the preceding types, but are expressed relative to UTC.
$(DAYCOUNT)
The number of the days passed since an arbitrarily chosen day zero (January 1, 2009). Useful as last component of a version/build number.


[Previous] 3.2.4  Language and encoding
[Next] 3.2.6  Random values

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH