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
2
votes
4 answers

I want to show the time in GMT from (1800+0100)

I have a field in a table with varchar data type which contains the time as 1800+0100, how can I show it like this 19:00 GMT? Is there any C# method which takes the time as 1800+0100 and converts to 19:00? Thanks in advance. Any help would be…
Rais Hussain
  • 203
  • 1
  • 2
  • 12
2
votes
6 answers

SimpleDateFormat sometimes wrong hours formatting

I want to convert my timestamp into XXhours:YYminutes string. My approach sometimes works correctly unless it’s obtaining greater values. For example, the 193500000 -> 05hours:45minutes (Wrong, correct is 53hours:45minutes) 60300000 ->…
Expiredmind
  • 788
  • 1
  • 8
  • 29
2
votes
1 answer

get gmt time two hours ago Python 2.7

Hi I am having trouble getting the time two hours ago in a similar function to my get_timestamp => def get_timestamp(): """Return correctly formatted timestamp""" return strftime("%Y-%m-%dT%H:%M:%SZ", gmtime()) def two_hours_ago(): …
user8022517
2
votes
3 answers

Determining Local Time in another Timezone

How can I determine the current date and time of various countries using a PERL script that executes on a server in the US? For example, getDTnow() should determine the current date and time on the server and use that to return the date and time of…
Sam
  • 1,358
  • 4
  • 16
  • 30
2
votes
2 answers

how to convert time_t to something like "Fri, 12 Nov 2010 16:02:54 GMT " in C on Linux

I'm writing a simple web server in C on Linux. I have to add the last modified time of a file that will be transferred to the client(browser), I analysed how some websites and find out that they all present the time in format: Fri, 12 Nov 2010…
wong2
  • 34,358
  • 48
  • 134
  • 179
2
votes
0 answers

Converting GMT to Server local time zone C#

I'm trying to convert GMT time that I get from ebay API into a specific time zone , depending on where my application is hosted so that I can convert and get correct dates (As they really are on ebay as well for transactions). The way I tried to…
User987
  • 3,663
  • 15
  • 54
  • 115
2
votes
1 answer

PHP Timezones getTransitions trustworthy?

Have you ever had any issue with PHP timezones conversions through the getTransitions function? I am trying to convert an Argentinian date into GMT. If I look into the array of transitions, I get: .... [63] => Array ( [ts] => 1287284400 [time] =>…
Pacob
  • 21
  • 4
2
votes
3 answers

Trying to retrieve the UTC time-stamp in Oracle, does using "from_tz" cause an issue?

Will using the following query to retrieve the UTC timestamp from an oracle database cause an issue? I do not want to alter the database timezone parameter in order to retrieve the correct date. I do not want to do alter database set time_zone. My…
Hooplator15
  • 1,540
  • 7
  • 31
  • 58
2
votes
3 answers

Javascript Countdown Timer in GMT/UTC

I have the following javascript code for a countdown timer: var end = new Date('10/26/2016 4:00 PM'); var _second = 1000; var _minute = _second * 60; var _hour = _minute * 60; var _day = _hour * 24; var timer; function showRemaining() { var…
odd_duck
  • 3,941
  • 7
  • 43
  • 85
2
votes
1 answer

GMT+ string convert to Date Java

I am trying to convert a String in the format of "Wed Jun 01 00:00:00 GMT-400 2016" to ISO8601 "2016-06-01T00:00:00.000Z". I am getting an error "Unparseable date". I am not sure what am I doing wrong. DateFormat startDate = new…
Annie
  • 63
  • 5
2
votes
1 answer

IIS 8 time did not change when we modify the server time due to Daylight saving time

I am using IIS-8 under Windows Server 2012 R2. and the time for both the IIS & windows server were exactly the same. but this week we changed our server time be adding one hour for daylight saving time. this caused our IIS time to be different than…
John John
  • 1
  • 72
  • 238
  • 501
2
votes
1 answer

Mercator projection with metric grid overlay (metre increments from centre) - GMT Generic Mapping Tools

I have a plot of Montserrat, centred on -62.2°,16.75°, with a Mercator projection created using Generic Mapping Tools (GMT), as below. I would like to add a grid on top of this, using the centre as the origin. However, I would like to produce the…
Conquistador
  • 362
  • 2
  • 5
  • 19
2
votes
1 answer

Using custom fonts in GMT (Generic Mapping Tools) ?

I am frequently using the Generic Mapping Tools (GMT) to generate high-quality geographical maps in postscript format. Recently, I wanted to switch from the standard postscript fonts (Helvetica, Courrier, etc. available by default in GMT) to other…
Leonard
  • 2,510
  • 18
  • 37
2
votes
1 answer

PHP - output of date('now') is a ahead of local time by 6 hours, but time zone is set to correct local zone zone?

I'm in St. Louis, MO in the USA Central Time Zone. We are -6 GMT The PHP time zone setting in php.ini is date.timezone = "America/Chicago" (Chicago is almost directly north of St. Louis. echo date('now'); produces: December 19, 2015, 2:45 am. EDIT…
SimonT
  • 486
  • 1
  • 4
  • 16
2
votes
2 answers

How to get the current time in GMT?

Possible Duplicate: How can I get the current date and time in UTC or GMT in Java? I want to get the current timestamp in GMT; any ideas how to do that? i managed to get a string in gmt format the problem is that i want to convert this string to…
user353682
  • 323
  • 3
  • 5
  • 12