This shows you the differences between two versions of the page.
pt:hour [2016/01/01 22:48] |
pt:hour [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Hour ===== | ||
+ | ==== Formato ==== | ||
+ | hour\\ | ||
+ | hour() | ||
+ | |||
+ | ==== Descrição ==== | ||
+ | Devolve a hora do relógio do sistema (0-23). | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | < | ||
+ | # 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(" | ||
+ | </ | ||
+ | mostrará algo como.\\ | ||
+ | < | ||
+ | 2010-July-15 | ||
+ | 10-00-02 PM | ||
+ | </ | ||
+ | |||
+ | ==== Ver Também ==== | ||
+ | [[day|Day]], | ||
+ | ==== Introduzido ==== | ||
+ | 0.9.4 | ||