User Tools

Site Tools


es:minute

Differences

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

Link to this comparison view

es:minute [2016/01/01 22:43]
es:minute [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Minute =====
 +==== Formato ====
 +**minute**\\
 +**minute**()
 +
 +==== Descripción ====
 +Devuelve el minuto actual de la hora (0-59) de acuerdo con el reloj del sistema.
 +
 +==== Ejemplo ====
 +<code>
 +# mostrar la fecha
 +dim months$(12)
 +months$ = {"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"}
 +print  right("0" + day, 2) + "-" + months$[month] + "-" +year
 +# mostrar la hora
 +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á algo similar a:\\
 +<code>
 +15-julio-2010
 +10-00-02 PM
 +</code>
 +
 +==== Ver también ====
 +[[day|Day]], [[hour|Hour]], [[month|Month]], [[Msec|Msec]], [[second|Second]], [[year|Year]]
 +
 +==== Disponible desde la versión ==== 
 +0.9.4
  
es/minute.txt · Last modified: 2020/02/28 10:46 (external edit)