Hour
Formato
hour
hour()
Descripción
Devuelve la hora actual del día (0-23) de acuerdo con el reloj del sistema.
Ejemplo
# 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$
mostrará algo similar a:
15-julio-2010
10-00-02 PM
Ver también
Day, Hour, Minute, Month, Msec, Second, Year
Disponible desde la versión
0.9.4