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

Date conversion with different gmt

I have two dates in my database This date is from an api - 16 Nov 2017 10:54:12 +0000 This date is from my server - 16 Nov 2017 16:24:12 +0530 I want to convert this date into 16 Nov 2017 10:54:12 +0000 in my server time.
deepu sankar
  • 4,335
  • 3
  • 26
  • 37
0
votes
1 answer

Converting timestamp to GMT with POSIX

Is it possible to convert a given timestamp to GMT in Perl using the POSIX module? Below is what I've tried, but not sure why the time is so far off... use POSIX; my $shipts = "2017-09-23 20:53:00"; my $shiptsgmt = strftime("%Y-%m-%d %R",…
rwfitzy
  • 413
  • 5
  • 16
0
votes
1 answer

Add GMT Time to a Given Date Time(from server) in ios

I have a date like "2017-07-31T05:12:17.36" from server (Server time in another country). I need to add GMT+5:30 to this date to make it the time in INDIA. Please help. Please use the the above date string in answers. Also Please use swift
DHEERAJ
  • 1,478
  • 12
  • 32
0
votes
1 answer

how to convert XMLGregorian Calendar to java.util.Date in GMT(Greenwich) time

I am trying to convert XMLGregorian Calendar to java.util.Date in GMT.But following method gives me same date.It could not convert the date. Can you please look at the below code and tell me where I am doing wrong ? try { …
Tonyukuk
  • 5,745
  • 7
  • 35
  • 63
0
votes
2 answers

Showing Local Time based on client / server offset in java

My client/browser is in India and I get the timezoneoffset from javascript using the following code: var now = new Date(); var localOffSet = now.getTimezoneOffset(); -330 // for India int localOffSetMin = (localOffSet)*(-1); My server is located…
user3772144
  • 101
  • 2
  • 10
0
votes
1 answer

pipes in angular 2 for time 00:00:00z

I have a json format { endDate:"2017-05-15Z" id:"9od718ztlx8dffe3f1q78bc1t" name:"Clausura - Quarter-finals" startDate:"2017-05-11Z" **time:"01:00:00Z"** } I need convert the time to gmt. I try with various pipes but the result always is the same.…
Edu Sil
  • 1
  • 1
0
votes
1 answer

If I set an in-app alarm according to GMT time then how am I am able to trigger it according to various timezones automatically in android

Calendar calendar = Calendar.getInstance(TimeZone .getTimeZone("GMT")); This is how I am setting my timezone to GMT for alarm purpose and setting the alarm according to GMT. Now is there any auto configuration way in android by…
0
votes
1 answer

vb.net - GMT Time?

Hey, I am trying to get the current GMT time in vb.net and can't seem to figure it out. A lot of google threads pointed to using DateTime.UtcNow but that gives an incorrect GMT time. Any ideas? MsgBox(DateTime.UtcNow) 'outputs 11/21/2010…
Phil
  • 81
  • 4
  • 11
0
votes
2 answers

Set Time Zone in Android App on the basis of server response

I am doing some work which scenario is , I am receiving date and time from server as a data field. i.e 2016-12-20T16:22:00+05:00. I have an spinner in which * (+12:00 to -12:00) values by each hour * Now, i need to transform this date & time…
Syed Hamza Hassan
  • 710
  • 1
  • 11
  • 24
0
votes
1 answer

How to accept the value as UTC?

Using MomentJS + ReactJS: Currently I have the following but it accepts the value as local time. How can I have it accept the value as UTC date/time and not local date/time? var dateTime = new Date("11 30 2016 00:00:00") //Logs as: `Wed Nov 30…
Dan Me
  • 2,143
  • 4
  • 19
  • 19
0
votes
2 answers

Getting global (UTC or GMT) time in angularjs and not local time

Is there any way to do this in angular js or just javascript? Getting a time that does not depend on the local date of the PC? The only solution I could think of was to constantly make requests to the back-end so it would use the server's time and…
Baek Ryun
  • 100
  • 1
  • 3
  • 14
0
votes
0 answers

JavaScript returns different date in IE11

I'm working with jQuery datepicker and in Internet Explorer 11 the same date (2017/Aug/12) appears twice and the following (13) doesn't exist. Checking the console I found the following difference between IE11 and Chrome. Chrome var a = new…
Jordan
  • 45
  • 5
0
votes
1 answer

Allow user to select SET time_zone from Select Box

I have been trying for a while now to deal with timezones on my site. My site contains sport schedules. I output match details into a table. I am trying to work out a way to allow the user to select (from a select box populated with timezone values…
Brendan Rodgers
  • 305
  • 2
  • 17
0
votes
1 answer

Javascript: Can you convert your local time to GMT like so, new Date(localTime + 'GMT')?

I currently have a var dateNow as '10 1 2016' and var timeNow as '05:15:50' and was able to convert to UTC like so var dateTimeNow = Date(dateNow + timeNow + ' UTC'); Would now like to convert it to GMT, so is it as simple as just changing ' UTC' to…
user6898719
0
votes
0 answers

Understanding UTC vs GMT Standard Time in JavaScript / node.js

I have some unit tests failing with errors like: - "dateModified": "Fri Mar 06 2015 00:00:00 GMT+0000 (UTC)" - "datePublished": "Fri Mar 06 2015 00:00:00 GMT+0000 (UTC)" + "dateModified": "Fri Mar 06 2015 00:00:00 GMT+0000 (GMT Standard…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494