Visualizzare l’ora corrente

Grazie al seguente script è possibile formattare l’ora corrente per poterla mostrare al visitatore.


function orario()

dim intOra

intOra=datepart(“h”, time() )

if len(intOra)=”1″ then

intOra=”0″ & intOra

end if

dim intMin

intMin=datepart(“n”, time() )

if len(intMin)=”1″ then

intMin=”0″ & intMin

end if

dim intSec

intSec=datepart(“s”, time() )

if len(intSec)=”1″ then

intSec=”0″ & intSec

end if

orario= intOra&”:”&intMin&”:”&intSec

end function

response.write orario()


I Video di

Writing Android Libraries

Worked for Nokia for 5 years, growing expertise in development for embedded devices and tooling. Worked for Realm for the […]