Android Question same output for DateTime.now

zohar

Member
Licensed User
Longtime User
Hi

each time im running the program with DateTime.now it shows me the same value :2147483647
as far as i understand this is epoch and it represent seconds that passed from a specific date .
why i can't see any changes in the number ?

Thanks ,
Zohar
 

zohar

Member
Licensed User
Longtime User
Hi

each time im running the program with DateTime.now it shows me the same value :2147483647
as far as i understand this is epoch and it represent seconds that passed from a specific date .
why i can't see any changes in the number ?

Thanks ,
Zohar
my mistake ive used int instead of long .

sorry .
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i cant reproduce it....

B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Dim t As Timer
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")
    t.Initialize("Timer",500)
    t.Enabled = True
End Sub
Sub Timer_Tick
    Log("TimerTick: "&DateTime.Now)
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…