User Tools

Site Tools


ro:hour

Differences

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

Link to this comparison view

ro:hour [2017/08/21 13:36]
junior-root
ro:hour [2020/02/28 10:46]
Line 1: Line 1:
-===== Hour (Funcție) ===== 
-> **Engleză:** //**HOUR** = oră// 
-==== Format ==== 
-hour\\ 
-hour() 
- 
-Întoarce un [[integerexpressions|număr_întreg]]. 
-==== Descriere ==== 
-Întoarce ora curentă (0-23). 
-==== Exemplu ==== 
-<code> 
-# afișează data într-un stil drăguț 
-dim luni$(12) 
-luni$ = {"ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie"} 
-print right("0" + day, 2) + "-" + luni$[month] + "-" + year 
- 
-# afișează ora curentă în format AM/PM (antemeridian/postmeridian) 
-h = hour 
-if h > 12 then 
-h = h - 12 
-ampm$ = "PM" 
-else 
-ampm$ = "AM" 
-end if 
-if h = 0 then h = 12 
-print  right("0" + h, 2) + ":" + right("0" + minute, 2) + ":" + right("0" + second, 2) + " " + ampm$ 
-</code> 
-va afișa ceva în genul:\\ 
-<code> 
-05-iulie-2016 
-11:57:32 AM 
-</code> 
-==== Vezi și ==== 
-{{page>ro:start#Timp și Dată&noheader}} 
-==== Istoric ====  
-|0.9.4|Adăugată în acestă versiune|  
  
ro/hour.txt · Last modified: 2020/02/28 10:46 (external edit)