B4A Code Snippet [SQLite] datetime('now') - aeric    Oct 2, 2019 ) 'qry = "SELECT datetime('now')" ' 2019-10-03 02:11:07 'qry = "SELECT datetime('now', 'utc')" ' 2019-10-02 18:12:02 qry = "SELECT datetime('now', 'localtime')" ' 2019-10-03 10...B4A Code #Region Project Attributes #ApplicationLabel: LocalTime #VersionCode: 1... Dim DB As SQL End Sub Sub Globals End Sub Sub Activity_Create(FirstTime As Boolean) Dim... B4A Question SQLite issue: Datetime.Now - grafsoft    Jan 31, 2022 )
...
Private dt As Long
dt=DateTime.now
Log ("locationchanged: " & dt...Hi,
I cannot save the current date and time to a SQLite table:
Private t As String
t... B4A Question Log(datetime.now) different on 2 apps - tufanv    Jun 25, 2021   (2 reactions) Hello, I am using the same device for testing this. On activity_pause I have log(datetime.now) One app gives : 1624623417954 which is correct other one gives : 1125801219 What am i missing here? EDIT : found the problem. I was using int to store this instead of long... B4J Question Calculating elapsed milliseconds with DateTime.Now - max123    Sep 12, 2023 Button1_Click
Dim t1,t2 As Long
t1 = DateTime.Now
Log("S: " & t1)
Dim... (DivideDouble(Number1, Number2, 1000000)) Complete (rtn As Double)
t2 = DateTime.Now
Log... B4A Question SOLVED : datetime.time(datetime.now) is one hour behind the time on the phone - Antonio Ferreira    Apr 1, 2024 I have im my code - DateTime.SetTimeZone(0) I remove this line and all is OK I've always used the datetime.time(datetime.now) function to get the current time, which has always been the same as the time on the phone. I'm in Portugal and at the moment datetime.time(datetime.now) is one hour behind the time on my phone. This is happening after 27-03-2024 when Portugal time was changed (summer time) B4A 12.8 what's wrong? thank you... B4J Question DateTime.Now value - Erel (first post)    Sep 3, 2024   (2 reactions) 1. Update to OpenJdk 19.
2. The daylight offset is not related to the OS settings. The JVM includes a database with the time zones and the daylight offsets.... B4A Question Is DateTime.Now a discrete function? - DanteS (first post)    May 21, 2024 Solved
The solution was the variable class. I was using Float. Once I changed the definition to Long, I begun to read running times of 2, 27 or 48 seconds or 1 minute and 33 seconds. Before... B4A Question Periodbetween string and datetime.now - Sub7    Jun 20, 2014 .SubString2(12,19)'Get time only
'Convert
foo =DateTime.DateTimeParse(datediff, minutes)
'Time elapsed:
period1 = DateUtils.PeriodBetween(foo,DateTime.Now)
elapsed = period1.minutes&... B4A Question finding out if DateTime.Now time is between a start time and and ending time - rleiman    Aug 5, 2015 Hi Everyone,
I would like to know if anyone has written a function that tests wether a given time in ticks is between a starting time.
For example:
Starting time would be today at 10pm.
Ending... B4A Question Wrong date with DateTime.now - Roger Daley    Aug 27, 2014 .
Regards Roger
Sub Date_click
DateTime.SetTimeZone(0)
Dim now As Long
now = DateTime.now
Msgbox("The date is: " & DateTime.Date(now) & CRLF & _
"The time is: "... Page: 1   2   3   4   5   6   7   |