User Tools

Site Tools


datetime_v6_0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
datetime_v6_0 [2015/01/27 18:53]
curlymo
datetime_v6_0 [2015/11/27 21:09] (current)
Line 36: Line 36:
  "​datetime":​ {  "​datetime":​ {
  "​name":​ "Date & Time",  "​name":​ "Date & Time",
- "​group":​ [ "​Misc"​ ]+ "​group":​ [ "​Misc"​ ],
  "​media":​ [ "​all"​ ]  "​media":​ [ "​all"​ ]
  }  }
Line 77: Line 77:
 |X|Unix timestamp| |X|Unix timestamp|
 |LT, L, LL, LLL, LLLL|Locale dependent date and time representation| |LT, L, LL, LLL, LLLL|Locale dependent date and time representation|
 +
 +Example Formatting:
 +
 +<​code>​
 +"​gui":​ {
 +                "​datetime":​ {
 +                        "​name":​ "​Time",​
 +                        "​group":​ [ "​Group"​ ],
 +                        "​format":​ "​HH:​mm:​ss"​
 +                }
 +}
 +</​code>​
 +In this example, only the time is shown in the GUI (24h notation)
  
 ==== Notes ==== ==== Notes ====
  
 The ntp-server id is optional. The ntp server will be used to check if the time is in sync with the atomic clock. The ntp-server id is optional. The ntp server will be used to check if the time is in sync with the atomic clock.
 +
 +The weekday id counts day 1 as Sunday
datetime_v6_0.1422384834.txt.gz ยท Last modified: 2015/11/27 21:08 (external edit)