start_time = CreateObject("roDateTime")
start_time.Mark()
start_time.ToLocalTime()
start_time_seconds = CreateObject("roInt")
start_time_miliseconds = CreateObject("roInt")
'convert to miliseconds'
start_time_seconds = start_time.asSeconds()
print "start time seconds: " + itostr(start_time_seconds)
start_time_miliseconds = start_time_seconds * 1000
print type(start_time_miliseconds)
print tostr(start_time_miliseconds)
end_time_miliseconds = CreateObject("roInt")
end_time_miliseconds = (1 * 3600000) + start_time_miliseconds
print type(end_time_miliseconds)
print itostr(end_time_miliseconds)
start_time_seconds = start_time.asSeconds()
start_time_miliseconds# = start_time_seconds * 1000
start_time = CreateObject("roDateTime")
start_time.Mark()
'start_time.ToLocalTime()
'convert to miliseconds'
start_time_seconds = start_time.asSeconds()
print "start time seconds: " + itostr(start_time_seconds)
start_time_miliseconds# = start_time_seconds * 1000
print type(start_time_miliseconds)
print Str(start_time_miliseconds)
end_time_miliseconds# = (hours * 3600000) + start_time_miliseconds
print Str(end_time_miliseconds)
Use of uninitialized variable. (runtime error &he9) in ...9S0W/pkg:/source/smsUtils.brs(205)
205: print Str(start_time_miliseconds)
start_time = CreateObject("roDateTime")
start_time.Mark()
'start_time.ToLocalTime()
'convert to miliseconds'
start_time_seconds = start_time.asSeconds()
print "start time seconds: " + itostr(start_time_seconds)
start_time_miliseconds# = start_time_seconds * 1000
print type(start_time_miliseconds#)
print Str(start_time_miliseconds#)
end_time_miliseconds# = (2 * 3600000) + start_time_miliseconds#
print Str(end_time_miliseconds#)
start time seconds: 1361479201
Double
-2.543183e+07
-1.823183e+07
Function DoubleToString(x# as Double) as String
onemill# = 1000000
xhi = Int(x#/onemill#).toStr()
xlo = Int((x#-onemill#*Int(x#/onemill#))).toStr()
xlo = String(6-xlo.Len(),"0") + xlo
return xhi+xlo
End Function