Questions tagged [gmt]
Greenwich Mean Time (GMT) is a term originally referring to mean solar time at the Royal Observatory in Greenwich, London.
445
questions
0
votes
0
answers
44
views
java time inconsistently reporting results
I have this code which is part of building a JWT token using a string in a certain format that should represent the current time in the GMT timezone:
DateTimeFormatter formatter = new ...
1
vote
2
answers
447
views
Wrong offset for America/Mexico_City in php DateTimeZone after Daylight Saving Time cancellation
I have a problem with php in converting dates between timezones.
In particular using the DateTime and DateTimeZone functions I get that the current offset of America/Mexico_City is -5 hours w.r.t UTC (...
0
votes
1
answer
61
views
How to convert String time to datetime which includes gmt
Time should be sent in this format
"2023-01-09T10:45:00.000+05:30"
and the String which i have to parse into datetime is only "10:00 AM"
i tried doing this
var GMTdateFormat = ...
0
votes
2
answers
98
views
Oracle convert from GMT to EST and EDT
I am using Oracle 19c.
I need to convert dates from GMT to EST and EDT.
I am using the following approach:
1. Get the destination time zone abbreviation for the p_date variable:
DEFINE p_date ...
0
votes
0
answers
68
views
How to construct a wxDateTime from a GMT broken down date/time?
I have a string timestamp ("YYYY-MM-DD HH:MM:SS") which is in GMT and I need to make a wxDateTime from it. Since with wxDateTime, (as stated in the documentation) "the time is always ...
0
votes
1
answer
29
views
Get time in GMT in a specific format
I want a time in the below-mentioned format, using Python.
Tue, 08 Nov 2022 15:35:20 GMT
I should be able to get the current time in above format;
Then I should be able to add days in it and get the ...
0
votes
1
answer
245
views
Converting GMT date to local time zone date - flutter
I am getting GMT date from api response:
Thu, 13 Oct 2022 00:09:35 GMT
Using below code to convert it to local date :
DateTime dt = DateTime.parse("Thu, 13 Oct 2022 00:09:35 GMT");
print(&...
0
votes
1
answer
207
views
Convert GMT to AEST [duplicate]
I have a dataframe like below:
Car id time
car_41 2019-10-09 19:21:06
. .
The time type is datetime64[ns] and it's based on GMT; however, I want to convert it to AEST (Australian Eastern ...
-4
votes
1
answer
34
views
How can I show the current timezone, date, and time on the page in JavaScript?
I need to show the current timezone, date and time on the web page in the same format as shown below every second with JavaScript.
Ex: (GMT-05:00) 8/16/2022 01:30:00 PM
Thanks in advance!
0
votes
1
answer
258
views
Server-side Google Tag Manager (GTM) gives 404 with custom domain
I'm trying to connect my custom domain to Google Tag Manager container. I followed every instruction from the docs, but I'm still getting the 404 error, even after publishing all the changes and ...
0
votes
3
answers
313
views
how convert GMT date String into Date
I have a GMT String "Thr, 09 Jun 2022 19:20:00 GMT"
I want to convert this into Date.
Can anyone help how I convert this?
I tried every way but giving Unparseable date: "Thr, 09 Jun ...
1
vote
2
answers
293
views
Convert GMT_timezone to local datetime in python
I have a date with GMT with different timezones +6 & +5
gmt_time6= "2022-05-06T15:11:29.695GMT+06:00"
gmt_time5 = "2022-05-06T14:11:29.785GMT+05:00"
How to parse it, that ...
-1
votes
1
answer
630
views
Why does JavaScript Date(0) return 1am GMT+1 Jan 1st 1970?
I am in London (GMT time zone). We are currently in DST.
In the UK, Daylight Saving Time starts in March and ends in October, so Jan 1 1970 would have been outside DST.
However,
epochDate = new Date(...
0
votes
1
answer
301
views
How to convert 'HH:MM' to a particular GMT time on Python?
Suppose that you have a variable that stores the following time zone format as string type:
timezone = '(GMT -5:00)'
Now you have the following times, which were set in GMT -4:00 time and as string ...
0
votes
2
answers
339
views
offset calculation for day light saving(DST) without using localtime
I have CODE as below to calculate offset,
Here I executed below code on EST timezone machine whose offset is -18000 seconds i.e. UTC-5.00
Please note I can't use localtime() due to some limitations ...
0
votes
1
answer
790
views
Dart (Flutter) Wrong Time Zone- GMT is set as GMT 0 although my time zone is GMT +1. How can I change it?
Code:
DateTime date = DateTime.now();
print(date.timeZoneName);
Result : I/flutter (18415): GMT
The Result should be GMT +1
Thanks
1
vote
1
answer
38
views
JS date difference
When I do new Date() on my browser's console. I will get the time that is on my device. Like this
Thu Dec 16 2021 17:07:55 GMT+0530 (India Standard Time)
But when I do new Date in my node project I ...
-1
votes
2
answers
910
views
Converting Time Zone to GMT values in Java 11
We keep time zones of the cities in our config table using ID of Time Zone values as Europe/London, Asia/Tokyo, etc. However, when selecting time zones from the list, user needs to see the GMT values ...
1
vote
1
answer
628
views
What does NNN mean in date format <YYMMDDhhmmssNNN><C|D|G|H>?
hi I has date format and I want converted to correct GMT date :
<YYMMDDhhmmssNNN><C|D|G|H>
Sample value on that date:
210204215026000C
I get this explanation for part NNN :
NNN If flag ...
0
votes
2
answers
782
views
How to get day of the week of GMT using kotlin?
For EXAMPLE, current UTC time is:
17:14:24 UTC
Friday, 5 November 2021
I want to get the result "6" (Sunday = 1 => Friday = 6)
1
vote
1
answer
1k
views
Calculate time difference between utc date and given date in Javascript
In Javascript, I want to calculate the difference between today'date (but adjusted to GMT0) and a given date 1970/01/01 in miliseconds.
On powershell for instance this will be (([datetime]::UtcNow) - (...
0
votes
0
answers
77
views
calculate the distance between multiple GPS position w.r.t one reference
I have 80 points one line that crosses one particular point. I want to calculate the distance between that reference point and each station and it should be positive and negative.
I tried following ...
-2
votes
1
answer
100
views
Why DatetimeComponents are no returning hours, minutes and seconds when converting GMT time
I'm converting date time(2021-10-15 18:30:00 UTC,2021-10-15 18:30:00 +0000) to datetime component but it's missing hours, minutes and seconds
let changedDate = Calendar.current.date(byAdding: .day, ...
1
vote
2
answers
727
views
python convert GMT time into KST time
I want to get the server time for my ticketing program.
I firstly used
import datetime
datetime.datetime.now()
But I've noticed that my computer time is not accurate from the real servertime.
So I've ...
0
votes
1
answer
29
views
Why a "date" as "2021-07-20" (in mysql db) appear as "2021-07-19T22:00:00.000000Z" in laravel "echo"?
I had upgrade my laravel projet from v6 to v7 and now i had a problem with dates.
In mysql db i have a field of type "date" valued "2021-07-20" but when i do an "echo" in ...
0
votes
1
answer
140
views
Java - how to convert time zones to a different format?
In my Java code I have appointments that have time zones related to each one.
The timezones are in the following format:
Europe/Zurich,
Indian/Antananarivo
I want to convert these to different ...
0
votes
1
answer
177
views
Python get time at specify GMT
I am trying to get the current time at a specific GMT ( like +3 -1 etc.). I have a script that runs on a remote server, and he needs to update the current time at another country which I can not find ...
0
votes
1
answer
158
views
Convert epoch time to gmt using mysql
I am running into trouble converting a time to utc/gmt.
select from_unixtime(1623167869);
2021-06-08 11:57:49
GMT should return 2021-06-08 14:57:49.
0
votes
0
answers
201
views
How to map the country names in one enum to the time zone in another seperate enum
I am having an enum named Country like this,
Enum_1:
typedef enum = {Pacific/Midway, America/Adak, Etc/GMT+10, Pacific/Marquesas, Pacific/Gambier}Country;
and an enum for storing their corresponding ...
0
votes
1
answer
162
views
Adding time to a Javascript Date.Now
So I have created a countdown timer in JS but realized my clients site has GMT +2 on the time listing meaning that the counter is not counting down to the correct time.
Here is my JS and screenshot of ...
0
votes
1
answer
208
views
JQuery updating date with specific format and GMT
I just took the JQuery function I found on stackoverflow to update time :
$(document).ready(function () {
var serverTime = new Date();
function updateTime() {
/// Increment serverTime by 1 ...
0
votes
1
answer
155
views
Why setDate() is giving the final date in milliseconds in nodejs? [duplicate]
I a trying to save a date to the nextMonth. For that I am first setting the month to next 30 days. But the final output date it is giving me in milliseconds.
I want the date in GMT format strictly.
...
1
vote
1
answer
437
views
Convert a GMT datetime to local timezone datetime
In Java 8 I need a way to get the local datetime (GMT+1) from a GMT datetime in ISO 8601 format.
A simple example:
Client sends me (Server) this datetime "2020-01-11T23:00:00.000Z"
Client ...
0
votes
1
answer
2k
views
How to convert local time into GMT time zone in Python
Input:
datetime.now().time()
I need to covert this time into GMT format in python
Can anyone help me for this?
1
vote
1
answer
90
views
How to keep my date value correct for submitting to API?
I'm on an angular app with .net core 3.1 backend.
I use a material datepicker.
When I pick up a date I can see in the console it looks like
Wed Feb 10 2021 00:00:00 GMT+0100
However, when it arrives ...
1
vote
1
answer
169
views
GMT to local time conversion ERROR with swift UIKIT
Does anyone have an answer to why I am getting -8 hours instead of -7 (my timezone) hours difference upon converting time from GMT to local i using the formula below:
print("TIMEZONE IN HOURS: \(...
0
votes
1
answer
487
views
How to get UTC offset (timezone) in correct format?
I have code like this that converts an Epoch timestamp into GMT timestamp:
#include <array>
#include <ctime>
#include <string>
std::string getDateTimeZ(size_t epoch)
{
const ...
-1
votes
1
answer
94
views
How can I calculate exact difference between a server time and GMT time?
How can I calculate exact difference between a server time and GMT time ?
I want to send a POST request to a server on specific time but I know the server time is not accurate so I want to calculate ...
5
votes
2
answers
19k
views
How can I get or print current datetime of GMT time zone in Python? [duplicate]
Here I print UTC time zone's current datetime. I want current GMT time zone's datetime by this method. How can I?
import datetime
dt_utcnow = datetime.datetime.utcnow()
print(dt_utcnow)
...
1
vote
1
answer
7k
views
C# Convert DateTime to GMT or BST from UTC
I'm storing a date-time in SQL which is retrieved from an Azure server which is in UTC.
When I come to retrieve this date-time from SQL, the date-time kind is unspecified ...
In the UK, we are ...
0
votes
1
answer
121
views
GMT Timezone conversion ADDS difference in time rather than subtracts [duplicate]
I'm trying to convert times with this function:
import pytz
from datetime import datetime
def ConvertTimezone(FromZone, timestring, ToZone):
print("Start of ConvertTimezone from " + str(...
0
votes
2
answers
2k
views
How to Convert GMT time to Local time
I'm new to python and I need to convert the air_time variable to local machine time or the current_time variable to GMT and then subtract one from other in this script but don't know how to do it.
...
0
votes
0
answers
165
views
Install the generic mapping tool (GMT) on Cygwin
I am trying to use GMT on cygwin, but I am unable to do so. I followed this link but could not install gdal due to PROJ 6 error.
How can I use GMT functions on Cygwin
0
votes
1
answer
558
views
TimeZone on Server IIS windows 2012R2
I'm using window server and want to change the time zone of the server to (UTC +7), I changed the timezone and DateTime to UTC +7 and restarted my server, but it seems to be stable for one day. After ...
0
votes
1
answer
269
views
GDAL: library not loasded libhdf5.100.dylib
I would like to run a GMT file wrote in tcsh environment. When I'm running it, I have the following error message :
dyld: Library not loaded: /opt/local/lib/libhdf5.100.dylib
Referenced from: /opt/...
1
vote
2
answers
301
views
How to setup timezone in firestore usage tab?
Not in Analysis dashboard. But when you go database then usage tab.
I'm not in GMT-7
4
votes
2
answers
4k
views
Difference between pandas datetime and datetime datetime
Hi have some dates in datetime.datetime format that I use to filter a panda dataframe with panda timestamp. I just tried the following and get a 2 hour offset :
from datetime import datetime
import ...
1
vote
1
answer
76
views
How to use a specific GMT for a function which will be recognised by other time zones
I imagine there's a simple way to do this, I just haven't figured it out yet.
I want to display a button only between 9am to 12pm AEST (GMT+10).
So for a user in AWST (GMT+8), they will not be able to ...
8
votes
1
answer
12k
views
What exactly does the timeZone option do in Intl.DateTimeFormat()
I have difficulties to understand what the timeZone option in the Intl.DateTimeFormat() method exactly does. I could not find an in-depth resource on this, yet. Any explanation would be much ...
2
votes
7
answers
5k
views
How to get GMT timeoffset value for current time in Dart/Flutter
I'm developing an application where I need to get only GMT offset time, i.e. for India +5.30. How do I achieve this dart.
var now = new DateTime.now();
var timezoneOffset=now.timeZoneOffset;
print (...