Questions tagged [gmt]

Greenwich Mean Time (GMT) is a term originally referring to mean solar time at the Royal Observatory in Greenwich, London.

Greenwich Mean Time (GMT) originally referred to mean solar time at the Royal Observatory in Greenwich, London, which later became adopted as a global time standard. It is arguably the same as Coordinated Universal Time (UTC).

Related tag:

Useful Links:

UK: GMT

USA: GMT-5 --- GMT -10

448 questions
0
votes
1 answer

GMT time and mysql NOW() is giving 2 minutes difference

When i was checking the GMT time here it was 05:40:00, at the same time i ran the below query in mysql, SET time_zone='+00:00'; // to get GMT time SELECT NOW(); It was 05:37:50 from above query. So in mysql i am getting around 2 minutes time…
iLaYa ツ
  • 3,941
  • 3
  • 32
  • 48
0
votes
1 answer

ASP.Net C# UTC/GMT DateTime

I want get UTC 0 time which was Greenwich Mean Time (GMT). I try to DateTime.UtcNow and DateTime.Now.ToUniversalTime() but its returns wrong times. İts return 22:40 instead of 06:40 How can I get UTC/GMT time in C#.
user999822
  • 445
  • 1
  • 9
  • 17
0
votes
1 answer

Converting UTC Date to GMT in Groovy / Java

I am working with SoupUI a i need to adjust a Date/time (UTC) that i get back in a response to a GMT Date/time. The date that i get back in the respone looks as followes: 2012-11-09T00:00:00+01:00 I would like to convert this…
user1700478
  • 3
  • 1
  • 2
0
votes
1 answer

Google Calendar Auto Timezone

I'm doing a simple website for a client that includes a Google Calendar for displaying of upcoming events. The problem here is that I can't figure out how to get the timezone for the calendar to auto-update on a per-user basis, as it just won't due…
Scotty C.
  • 744
  • 4
  • 16
0
votes
2 answers

ASP.NET / SQL Timezone mystery

Setup: Windows Server 2003 / SQL Server 2005. ASP.NET 2.0. IIS 6. The site I'm working on uses ASP.NET Membership and when a user is created it is inserted into the aspnet_membership database. All servers are set at Central Time. I also verified…
Jack Marchetti
  • 15,536
  • 14
  • 81
  • 117
0
votes
1 answer

Get the timestamp's timezone

I'd like to get the timezone of a time, which the same time as the local time, but in an other GMT territory. There's what i thought will work: ceil((strtotime($scores[$i]['date'].' '.$scores[$i]['time'])-strtotime(date('d F Y H:i',strtotime("-2…
mark0ba
  • 27
  • 5
0
votes
2 answers

PHP Date / GMT Weirdness

Either I'm losing my mind, or I've not got the faintest idea what I'm doing. I'm leaning towards the latter. I'm trying to convert this: 1316826000, which I'm pretty confident should be Sat, 24 Sep 2011 01:00:00…
0
votes
1 answer

How can I set the minDate of datePicker to a time of day?

I am looking to use the datepicker to set up an ordering form on my website. I have a rule that if a user can order before 3pm (GMT) then they can order the same day, if they try and order after 3pm then they need to choose the next available…
Redwall
  • 1,010
  • 5
  • 30
  • 55
0
votes
1 answer

Converting GMT time to local time using timezone offset, not timezone identifier

It's pretty easy to convert a given GMT date into local time if you're given the timezone identifier from this list in PHP: http://www.php.net/manual/en/timezones.php For example, you can do this (where $fromTimeZone is just 'GMT', $toTimeZone is…
joshholat
  • 3,371
  • 9
  • 39
  • 48
0
votes
2 answers

Which php date and time tools to use for GMT offsetting

It appears there are many ways to approach date and time massaging in php. I usually am only every dealing with local time. Today, I need to work in UTC. I am querying against an API, the data they give me about an arbitrary record is: created:…
scott
-1
votes
1 answer

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); console.log(epochDate); returns Thu Jan 01…
AlanQ
  • 91
  • 1
  • 12
-1
votes
2 answers

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 for these time zones and we want to display…
user17186249
-1
votes
1 answer

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 inaccuracy of the server clock (mili seconds) to…
Ferrion X
  • 9
  • 3
-1
votes
2 answers

Remove GMT- from javascript clock output

The following script generates the following output: "Sun Feb 23 2020 06:35:14 GMT-1000 (HST)" I would like to strip out "GMT-1000 " and display only "Sun Feb 23 2020 06:35:14 (HST)". I don't know where the GMT-1000 is generated, so can't understand…
Konabob
  • 1
  • 3
-1
votes
2 answers

How to convert 2019-09-18T01:44:35GMT-04:00 to 2019-09-18T01:44:35-04:00 using SimpleDateFormatter

I want to convert date and time to user requested timezone. date and time is in GMT format. i tried got the solution but the final string contains GMT String in resultant date like (2019-09-18T01:44:35GMT-04:00). i don't want GMT String in the…
Naveen
  • 346
  • 2
  • 10