B4A Tutorial [B4X] DateUtils - Simplifies Date and Time Calcuations - Erel    Feb 7, 2021   (9 reactions)   tags: Date, dateutils, date time SetDateAndTime2(Years As Int, Months As Int, Days As Int, Hours As Int, Minutes As Int, Seconds As Int... example.
v1.05: Adds SetDateAndTime2. Allows you to explicitly set the time zone.
v1.03: Fixes a bug in NumberOfDaysInMonth method.
v1.02: Fixes a locale related bug (SetDate and SetDateAndTime).
v1...
Sub SetDateAndTime(Years As Int, Months As Int, Days As Int, Hours As Int, Minutes As Int, Seconds... Italian Problemi con Timezone e ora legale - TILogistic (first post)    Oct 27, 2020 DateUtils https://www.b4x.com/android/forum/threads/b4x-dateutils-simplifies-date-and-time-calcuations.26290/ SetDateAndTime2: https://www.b4x.com/android/forum/pages/results/?query=SetDateAndTime2 ... B4A Question Conversion of Date and Time across Timezones and database storage - RickV (first post)    May 4, 2023 .
I have tried to look at the methods of DateTime api and DateUtils library especially SetTimeZoneOffset() and SetDateAndTime2() but I don't know if they will suffice or there are some gotchas.ut I'm... location in 3 different timezones (none is utc/gmt)
2. Users in each location will work in their local times but the app must save all transactions with the local values converted to head-office... B4J Question Day light saving with long running B4J apps - Erel (first post)    Oct 7, 2019 Or does it???
Yes it does. Once you call SetTimeZone the time zone value will no longer change automatically.
Note that you can use DateUtils.SetDateAndTime2 instead of changing the time zone.... B4A Question changing date timezone with DateUtils - ALBRECHT    Aug 5, 2019 hello,
to check the DateUtils.SetDateAndTime2 timestamp,
I had trying that code :
'for the datetime = 08/05/2019 14:43:00
Dim mats As Long = DateUtils.SetDateAndTime2(2019, 8, 5, 14... Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (33 reactions)   tags: example games, XUI2D Games following a path - Angry birds example - Space Shooter - Tetris - X2 Source Code Video tutorial explaining the steps required for running the examples and configuring Tiled: Note that the video is not 100% up to date. It was created before the X2 library was available. All the X2 modules are now packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples...Updated thread based on X2 v2.0+: https://www.b4x.com/android/forum/threads/xui2d-x2-v2-0-2021... B4A Question StartServiceAt UTC or Local Ticks - Erel (first post)    Feb 11, 2021 Return DateUtils.SetDateAndTime2(DateTime.GetYear(DateTime.Now), DateTime.GetMonth(DateTime.Now), DateTime.GetDayOfMonth(DateTime.Now), _ hours, minutes, seconds, 0) End Sub ...Another option: Sub ParseUTCTime (time As String) As Long Dim m As Matcher = Regex.Matcher("(\d+):(\d+):(\d+)\s(\w+)", time) If m.Find = False Then Return 0 Dim hours As Int = m.Group(1) Mod 12 Dim minutes As Int = m.Group(2) Dim seconds As Int = m.Group(3) Dim am... B4A Question TimeStamp calculation - Erel (first post)    Sep 17, 2014 You can call DateUtils.SetTimeZone(0) to ignore the device time zone. Another option is to use DateUtils.SetDateAndTime2.... B4A Question Time zone issue - Erel (first post)    Jul 3, 2013 SetDateAndTime2 returns the ticks value of the given time instance.
It doesn't matter what....SetDateAndTime2(2013, 8, 23, 15, 0, 0, 1)
Log(DateUtils.TicksToString(eventTime)) 'will print the local time... B4A Question DateTime Ticks and Time Zones? - Erel (first post)    Oct 9, 2016 As I see it, you have two options: 1. Use DateUtils.SetDateAndTime2. You will need to parse the date and time string yourself. It should be simple. 2. Use a DateFormat that includes the time and the timezone. See this example: https://www.b4x.com/android/forum/threads/date-time-to-utc.51569/#post-323244 Don't try to calculate the time zone offset. It is very difficult to calculate it correctly when DST changes. Make sure to use DateUtils.PeriodBetween to calculate durations.... Page: 1   2   3   4   5   6   7   |