1,651
edits
m (→Units) |
m (→Date & Time) |
||
Line 841: | Line 841: | ||
=Date & Time= | =Date & Time= | ||
The default format depends on the locale you use to run Cumulus. | |||
When format is fixed it is noted. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
Line 848: | Line 851: | ||
|- | |- | ||
|<#date> | |<#date> | ||
|The current date | |The current date. | ||
|- | |- | ||
|<#metdate> | |<#metdate> | ||
|The current meteorological date. | |The current meteorological date. | ||
*If you use midnight rollover, this returns same date as <#date> (above), but with a different default format. | *If you use midnight rollover, this returns same date as <#date> (above), but with a different default format. | ||
*If using a 9am/10am rollover: | *If using a 9am/10am rollover: | ||
**After rollover time on current calendar date, this is same as <#date>, but with a different default format. | **After rollover time on current calendar date, this is same as <#date>, but with a different default format. | ||
**Between midnight and 9am/10am the <#metdate> will return the date associated with previous calendar day, but will still return current time | **Between midnight and 9am/10am the <#metdate> will return the date associated with previous calendar day, but will still return current time | ||
|- | |- | ||
|<#timeUTC> | |<#timeUTC> | ||
|The current UTC date/time rather than local date/time. Example result | |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> | |<#time> | ||
|The current time and date. Example result | |The current time and date. Example result: 18:30 on 30 December 2009. If you simply wish the time, use next tag (below). | ||
|- | |- | ||
|<#timehhmmss> | |<#timehhmmss> | ||
Line 880: | Line 879: | ||
|- | |- | ||
|<#dayname> | |<#dayname> | ||
| The current day as a word. For example, Monday | | The current day as a word. For example, Monday | ||
|- | |- | ||
|<#shortdayname> | |<#shortdayname> | ||
Line 902: | Line 901: | ||
|<#rollovertime> | |<#rollovertime> | ||
|The time that the logs rollover to the next day: 'Midnight', '9 am' or '10 am' | |The time that the logs rollover to the next day: 'Midnight', '9 am' or '10 am' | ||
|- | |- | ||
|<#metdateyesterday> | |<#metdateyesterday> | ||
Line 911: | Line 908: | ||
**After rollover time on current calendar date, this is same as <#yesterday> (below), but with a different default format. | **After rollover time on current calendar date, this is same as <#yesterday> (below), but with a different default format. | ||
**Between midnight and 9am/10am the date output by <#metdateyesterday> will be the calendar day before that returned by <#yesterday>, but the time returned is actual local time. | **Between midnight and 9am/10am the date output by <#metdateyesterday> will be the calendar day before that returned by <#yesterday>, but the time returned is actual local time. | ||
|- | |- | ||
|<#yesterday> | |<#yesterday> | ||
|Yesterday's date. | |Yesterday's date. | ||
|- | |- | ||
|<#update> | |<#update> | ||
|The date and time of the last web site update. | |The date and time of the last web site update. | ||
|- | |- | ||
|<#timeJavaScript> | |<#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. In JavaScript, you can use <code>Math.floor(new Date().getTime()/1000.0)</code> This getTime method returns the time in milliseconds. The web tag returns an integer (currently with 13 digits) representing the number of milliseconds since the UNIX epoch when the web tag was processed. It can be used in a script where you wish to re-express other times output by Cumulus MX into UTC (Coordinated Universal Time). Mac OS X uses 00:00:00.000 UTC on 1st January 2001 as the starting time and date for its millisecond count, so that is considerably lower. | ||
The JavaScript '''Date''' object contains the number of | |||
Note that UTC is calculated using 9192631770 times a particular transition time for Caesium 133 as a basis for 1 second. GMT (Greenwich Mean Time) is calculated on the basis that 1 second is 1/86400 of the time taken for a whole (day) rotation of the Earth. UT1 (or solar time) is calculated from various space measurements. Periodically, leap seconds are added to UTC to realign it with UT1, but these leap seconds are not added to the count of milliseconds represented by this web tag. | Note that UTC is calculated using 9192631770 times a particular transition time for Caesium 133 as a basis for 1 second. GMT (Greenwich Mean Time) is calculated on the basis that 1 second is 1/86400 of the time taken for a whole (day) rotation of the Earth. UT1 (or solar time) is calculated from various space measurements. Periodically, leap seconds are added to UTC to realign it with UT1, but these leap seconds are not added to the count of milliseconds represented by this web tag. | ||
Line 935: | Line 923: | ||
|- | |- | ||
|<#timeUnix> | |<#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. | ||
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> | |<#LastDataReadT> | ||
|The date/time data was last read from the station | |The date/time data was last read from the station. | ||
|- | |- | ||
|<#DaysSince30Dec1899> | |<#DaysSince30Dec1899> | ||
Line 946: | Line 932: | ||
|- | |- | ||
|<#recordsbegandate> | |<#recordsbegandate> | ||
|Date when records began | |Date when records began. | ||
|- | |- | ||
|<#DaysSinceRecordsBegan> | |<#DaysSinceRecordsBegan> |