Hi,
I am new to Basic4Android.
I am creating a program that needs to store data in sqlite along with an exact date and time. It is very important daylight saving doesn't affect the date and time recorded (ie I want something like UTC time).
Basically, I want to be able to calculate the exact time between two recorded values without "time changes" affecting the calculations.
I believe datetime.now returns seconds since some date in 1970. Is this the best way to record the date and time for my purpose and what data type should I use in sqlite to record the returned 'long' value.
Many thanks.
I am new to Basic4Android.
I am creating a program that needs to store data in sqlite along with an exact date and time. It is very important daylight saving doesn't affect the date and time recorded (ie I want something like UTC time).
Basically, I want to be able to calculate the exact time between two recorded values without "time changes" affecting the calculations.
I believe datetime.now returns seconds since some date in 1970. Is this the best way to record the date and time for my purpose and what data type should I use in sqlite to record the returned 'long' value.
Many thanks.