User Tools

Site Tools


pt:msec

Differences

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

Link to this comparison view

pt:msec [2016/01/01 22:48] (current)
Line 1: Line 1:
 +===== Msec ====
 +==== Formato ====
 +**msec**\\
 +**msec**()
 +==== Descrição ====
 +Devolve o milisegundo do relógio do sistema(0-999).
 +==== Exemplo ====
 +<​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>​
 +mostrará.\\
 +<​code>​
 +2010-July-15
 +10-00-02 PM
 +</​code>​
 +
 +==== Ver Também ====
 +[[day|Day]],​ [[hour|Hour]],​ [[minute|Minute]],​ [[month|Month]],​ [[Msec|Msec]],​ [[year|Year]]
 +==== Introduzido ==== 
 +0.9.4
  
pt/msec.txt · Last modified: 2016/01/01 22:48 (external edit)