This shows you the differences between two versions of the page.
de:hour [2016/01/01 22:37] |
de:hour [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Hour ===== | ||
+ | ==== Format ==== | ||
+ | hour\\ | ||
+ | hour() | ||
+ | |||
+ | ==== Description ==== | ||
+ | Returns the current system clock' | ||
+ | |||
+ | ==== Example ==== | ||
+ | < | ||
+ | # display nice date | ||
+ | dim months$(12) | ||
+ | months$ = {" | ||
+ | print year + " | ||
+ | # display pretty time | ||
+ | h = hour | ||
+ | if h > 12 then | ||
+ | h = h - 12 | ||
+ | ampm$ = " | ||
+ | else | ||
+ | ampm$ = " | ||
+ | end if | ||
+ | if h = 0 then h = 12 | ||
+ | print right(" | ||
+ | </ | ||
+ | Will print something like.\\ | ||
+ | < | ||
+ | 2010-July-15 | ||
+ | 10-00-02 PM | ||
+ | </ | ||
+ | |||
+ | ==== See Also ==== | ||
+ | [[day|Day]], | ||
+ | ==== New To Version ==== | ||
+ | 0.9.4 | ||