python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
DateTime2 value not getting converted to Datetime using At Time Zone SQL function
I am writing function to use At Time Zone SQL function to convert timestamp to local timestamp based on timezone value.
The source timestamp column has datetime2 datatype and a value=2020-10-29 23:59...
user2431858
Votes: 0
Answers: 1
Why django timezone offset is different?
Django 3.2.10, Python 3.9
settings.py
TIME_ZONE = 'Europe/Moscow'
script.py
from django.utils import timezone
tzinfo = timezone.localtime().tzinfo # <class 'pytz.tzfile.Europe/Moscow'>
tz = ...
Vadim Beglov
Votes: 0
Answers: 1
Powershell get timezone with DST
In powershell I'm using
(Get-Timezone).BaseUtcOffset
to get the UTC offset of a computer which gives me +1h for my timezone. That is technically correct since I'm in CET in winter (UTC+1) and CEST in...
Johannes B. Latzel
Votes: 0
Answers: 3
Create TZ-File out of TZ-String
I want to create a TF-File for storing Unix Time Zone informations out of a TZ-String as define in POSIX 1003.1 section 8.3.
It seems that timezone compiler zic does not cover this.
For a test I creat...
tom
Votes: 0
Answers: 0