This shows you the differences between two versions of the page.
ro:second [2016/07/05 03:23] junior-root created |
ro:second [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Second (Funcție) ===== | ||
- | ==== Format ==== | ||
- | second\\ | ||
- | second() | ||
- | |||
- | Întoarce// | ||
- | |||
- | ==== Descriere ==== | ||
- | Întoarce numărul de secunde aferent timpului curent (0-59). | ||
- | |||
- | ==== Exemplu ==== | ||
- | < | ||
- | # afișează data într-un stil drăguț | ||
- | dim luni$(12) | ||
- | luni$ = {" | ||
- | print right(" | ||
- | |||
- | # afișează ora curentă în format AM/PM (antemeridian/ | ||
- | h = hour | ||
- | if h > 12 then | ||
- | h = h - 12 | ||
- | ampm$ = " | ||
- | else | ||
- | ampm$ = " | ||
- | end if | ||
- | if h = 0 then h = 12 | ||
- | print right(" | ||
- | </ | ||
- | va afișa ceva în genul:\\ | ||
- | < | ||
- | 05-iulie-2016 | ||
- | 11:57:32 AM | ||
- | </ | ||
- | |||
- | ==== Vezi și ==== | ||
- | {{page> | ||
- | |||
- | ==== Istoric ==== | ||
- | |0.9.4| Nou începând cu această versiune| | ||