Hello. I want to send a time/date over bluetooth BLE and thought the easiest way was to send it in seconds since epoch. (What I get from DateTime.Now) I copied something I have used in the past as a time picker and stripped out all the datetime.GetHour stuff hoping I would get what I need.
but I get a negative number: -62167399845000
Am I able to achieve this easily using this method?
Thanks
B4X:
Dim td As TimeDialog
td.SetTime(DateTime.GetHour(DateTime.Now),DateTime.GetMinute(DateTime.Now),True)
td.Show("Enter time to start "," Timer","OK","Cancel","",Null)
Dim newtime As Long = td.TimeTicks
Log(newtime)
Am I able to achieve this easily using this method?
Thanks