User Tools

Site Tools


en:hour

Differences

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

Link to this comparison view

en:hour [2016/08/12 12:51]
admin
en:hour [2020/02/28 10:46]
Line 1: Line 1:
-===== Hour (Function) ===== 
-==== Format ==== 
-hour\\ 
-hour() 
- 
-returns [[integerexpressions|integer_expression]] 
- 
-==== Description ==== 
-Returns the current system clock's hour of the day (0-23). 
- 
-==== Example ==== 
-<code> 
-# display nice date 
-dim months$(12) 
-months$ = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} 
-print year + "-" + months$[month] + "-" + right("0" + day, 2) 
-# display pretty time 
-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> 
-Will print something like.\\ 
-<code> 
-2010-July-15 
-10-00-02 PM 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Time and Date&noheader}} 
- 
-==== History ====  
-|0.9.4|New To Version|  
  
en/hour.txt ยท Last modified: 2020/02/28 10:46 (external edit)