# Time functions.bb

Post Reply
User avatar
Dutchman
Posts: 148
Joined: Tue Aug 06, 2019 4:47 pm
Location: Netherlands

# Time functions.bb

Post by Dutchman » Wed Nov 20, 2019 12:42 pm

# Time functions.bb is a test and demo program for "! Time utils"

Code: Select all

'Time functions
'by "Dutchman" Ton Nillesen
'initiated September 2019
{/Extensions/Misc/! Time utils}
'
t=65432.1
PRINT "A period of";t;"seconds equals"+Time1$(t,12)+"."
PRINT "Current time is "+Time0$(0,0)+" or "+Time0$(1,0)
PRINT TAB(9);"in longer format: "+Time0$(0,1)+" or "+Time0$(1,1)
END
Output on console:

Code: Select all

A period of 65432.1 seconds equals 18:10'32".
Current time is 13:41 or  1:41PM
        in longer format: 13:41'23" or  1:41'23"PM
It is still a long way to go

Post Reply