Skip to main content

Minute

Minute (Função)​

Formato​

minute
minute ( )

devolve expressão_inteira

Descrição​

Devolve o minuto da hora (0-59) do relógio do sistema.

Exemplo​

# mostrar a data de forma legível
dim months$(12)
months$ = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
print year + "-" + months$[month] + "-" + right("0" + day, 2)
# mostrar a hora de forma bonita
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$

vai mostrar algo como

2010-July-15
10-00-02 PM

Ver também​

Day, Hour, Minute, Month, Msec, Second, Year

Histórico​

0.9.4Novo nesta versão