Mikroelektronika MIKROE-724 データシート
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
685
‘*
diff = Time_dateDiff(@ts1, @ts2) ‘ diff = 86163870
end.
TimeStruct type definition
structure TimeStruct
dim ss as byte ‘ seconds
dim mn as byte ‘ minutes
dim hh as byte ‘ hours
dim md as byte ‘ day in month, from 1 to 31
dim wd as byte ‘ day in week, monday=0, tuesday=1, .... sunday=6
dim mo as byte ‘ month number, from 1 to 12 (and not from 0 to 11 as with unix
C time !)
dim yy as word ‘ year Y2K compliant, from 1892 to 2038
end structure