1,352 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
9
votes
7
answers
1k
views
Given a whole hour of the day, how to find the next whole hour?
I need to iterate through the whole hours of an interval of a particular day. So given the time at one whole hour on the day in question, say, 01:00, how do I find the next whole hour? The next whole ...
1
vote
0
answers
113
views
Robocopy algorithm for /FFT and /DST options
Microsoft's Robocopy program has these two options:
/FFT :: assume FAT File Times (2-second granularity).
/DST :: compensate for one-hour DST time differences.
What is the exact algorithm that ...
0
votes
1
answer
55
views
df.to_json output appears to skip a date that is in the dataframe
I have very limited knowledge of pandas.
The data I'm using covers 2 dst (daylight saving) transitions for the UK (from 1 Sep 24 to 30 Apr 25), and consist of timestamps in milliseconds with values. ...
0
votes
1
answer
62
views
Enabling Daylight saving adjustment for Flask-APScheduler
I am trying to run APScheduler for my Flask app, but I can't get daylight saving time working for the cron time.
In my app.py, I have something like this:
from flask import Flask
import pytz
from ....
0
votes
0
answers
159
views
I'm having an issue with dayJS when daylight saving gets triggered
Whenever I want to check the difference between 2 dates, I get a different output.
Please note that on March 9th, daylight saving started at 2 AM.
import dayjs from 'dayjs';
var utc = require("...
0
votes
0
answers
34
views
Python Arrow library is not handling DST properly
My understanding of shift method was it will take care of DST. However when testing for 10 hours shift on 2025年03月08日T18:30:00 with US/Central as tzinfo, the expected output should be 2025年03月09日T05:30:...
3
votes
1
answer
78
views
How can I account for summer time when adding hours to a DateTime base value in PowerShell?
I'm parsing the dnsRecord attribute from a CSVDE dump of DNS records.
The attribute stores the timestamp as the number of hours that have elapsed since midnight (00:00:00), January 1, 1601 UTC in a ...
1
vote
1
answer
171
views
Why does Pandas .floor() throw AmbiguousTimeError for this Timestamp that's already unambiguous?
The following fails:
def round_in_tz(epoch_sec: int, tz_name: str, freq_spec: str):
"""Round the given epoch timestamp to the nearest pandas time frequency spec in the given timezone.&...
tba's user avatar
- 6,661
0
votes
3
answers
223
views
Arduino Code to determine if we are in DST or not
I am writing C code for an ESP32C3, so an Arduino type piece of hardware. There is no internal clock, so to get the time I talking to an NTP server on the internet.
I am also talking to a weather ...
0
votes
1
answer
73
views
How do I change the time zone in Anylogic?
How can I disable Daylight Saving Time ?
In my model, the DST is automatic but I don't want it. I figured how to bypass it for the events (using toTimeoutInCalendar( DAY, 1 )) but I have a couple of ...
2
votes
1
answer
140
views
error while converting zoned time into get_local_time using Howard Hinnant's date library
#include "date/tz.h"
#include "date/date.h"
#include <iostream>
#include <string>
int main()
{
using namespace date;
using namespace std;
using namespace chrono;
auto ...
1
vote
0
answers
29
views
Is there a way to represent time deltas in Python that differentiates between "1 day" and "24 hours"? [duplicate]
I'm currently working on a reminder bot project that supports recurring reminders. For example, a user can specify that they want their reminder to repeat in intervals of "3 days", "12 ...
4
votes
1
answer
406
views
Why does golang time.AddDate result in inconsistent timestamps during DST transition in America/Santiago?
I'm trying to understand why time.AddDate in Go produces unexpected results during the Daylight Saving Time (DST) transition for the America/Santiago time zone in 2024.
Santiago enter DST at 2024-09-...
1
vote
1
answer
398
views
Hot update timezone data (tzdb) in Java without upgrading or restarting JVM
I'm working on a new feature on my app that require updated timezone information (including daylight saving).
I understand that the time zone information data (tzdb) is stored inside the JVM. So I ...
0
votes
1
answer
69
views
Determine Daylight savings time for US Cities prior to 1967
I'm working on a problem where I need to get date times and get their UTC offset.
The data that I get is a date a time and longitude and latitude.
I am currently using pytz and timezonefinder to find ...