Code: Select all
DIM fstime% 5, rotime% 5, format% 33, result% 26, rsize% 4
SYS "NetFS_DoFSOp", 16, fstime%, 5, 5
SYS "NetFS_ConvertDate", fstime%, rotime%
$format%="%W3,%DY %M3 %CE%YR.%24:%MI:%SE"+CHR$(0)
SYS "OS_ConvertDateAndTime", rotime%, result%, rsize%, format% TO ,rsize%
PRINT "Server time :";$result%
It very nearly works, except the date returned is 28 years into the future. While I could just subtract 28 from the year, as the offset seems to remain consistent when I change the FS clock, it would also be nice to know what I've done wrong here so I can make it work without fudging it.