wiki:cumulusmx:webtags:datetime
Date and Time
The default format depends on the locale you use to run Cumulus.
When format is fixed it is noted.
Filter: Choose your criteria carefully.
| Webtag | Function |
|---|---|
| <#date> | The current date. |
| <#metdate> | The current meteorological date.
|
| <#timeUTC> | The current UTC date/time rather than local date/time. Example result: 18:30 on 30 December 2009. If you want the local date and time, use next tag (below). |
| <#time> | The current time and date. Example result: 18:30 on 30 December 2009. If you simply wish the time, use next tag (below). |
| <#timehhmmss> | The current time (without date). Example format: 18:30:27. You can use output format specifiers to change the way the time is output, but any date specifiers are ignored. |
| <#minute> | The current time, just the minutes. Fixed format: 07 (cannot use output format modifiers). |
| <#hour> | The current time, just the hour. Fixed format: 07 (cannot use output format modifiers) |
| <#day> | The current day as a 2-digit number. Fixed format: 07 (cannot use output format modifiers). |
| <#dayname> | The current day as a word. For example, Monday |
| <#shortdayname> | The current day as a shortened word. Example format: Mon |
| <#month> | The current month as a 2-digit number. Fixed format: 07 (cannot use output format modifiers). |
| <#monthname> | The current month as a word. Example format: July |
| <#shortmonthname> | The current month as a shortened word. Example format: Jul |
| <#year> | The current year as a 4-digit number. Example format: 2009 (cannot use output format modifiers). |
| <#shortyear> | The current year as a 2-digit number. Example format: 09 (cannot use output format modifiers). |
| <#rollovertime> | The time that the logs rollover to the next day: 'Midnight', '9 am' or '10 am' |
| <#metdateyesterday> |
The previous meteorological date. The default format depends on the locale you use to run Cumulus |
| <#yesterday> | Yesterday's date. |
| <#update> | The date and time of the last web site update. |
| <#timeJavaScript> | The JavaScript Date object contains the number of milliseconds since 00:00:00.000 UTC on 1st January 1970, that date and time is known as the UNIX Epoch. Technical |
| <#timeUnix> | Unix tracks the number of seconds since the UNIX epoch. So this web tag can be used when you do not want the millisecond accuracy of the previous web tag. Like previous web tag this relates to UTC, so see details for that tag to find out more. |
| <#LastDataReadT> | The date/time data was last read from the station. |
| <#DaysSince30Dec1899> | Day count (gives whole and fractional part) Example: 41250.6523310301 |
| <#recordsbegandate> | Date when records began. |
| <#DaysSinceRecordsBegan> | Day count since Cumulus records started. |
| <#DataDateTime> | This reflects the current date time with respect to the data. Use this web tag in things like Custom MySQL INSERT statements to pick up the historic data's date/time rather than the current clock date/time. |
wiki/cumulusmx/webtags/datetime.txt · Last modified: by Neil
