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

Troubles parsing DateTime from string

I am currently trying to parse a string that is obtained from an xml that is downloaded from the web every few minutes. The string looks like this: Thu Jul 12 08:39:56 GMT+0100 2012 At first I just did a string.split and took out everything after…
Chuck Condron
  • 35
  • 1
  • 6
3
votes
6 answers

Php Convert time in gmt format

I have this string 2012-06-27 16:17:06 and I want to convert it to GMT format. How can I do that? Thanks a lot.
michele
  • 26,348
  • 30
  • 111
  • 168
3
votes
3 answers

Store GMT dates on a US server

I'm from the UK, and have recently deployed a website on WinHost's Basic Package. When using DateTime.Now() in C#, or GETDATE() in SQL, these are both returning something like GMT-8 (because the server is hosted in the US). I think I'm a bit limited…
Curtis
  • 101,612
  • 66
  • 270
  • 352
2
votes
2 answers

Get GMT String from current Date

I am able to get the output format that I need, but not the correct time. I need it in GMT (which is +4 hours) var dt = new Date(); var dt2 = dt.toString('yyyyMMddhhmmss'); Any ideas? The output looks like: 20120403031408 I am able to get the…
user1309548
  • 25
  • 1
  • 4
2
votes
1 answer

Gmt php or UTC C# equivalence through SOAP

is C# DateTime.UtcNow and php date("c") are equivalent I doubt because when I soap both I get from C# : 2012-03-20T16:01:28.3954818Z and from PHP :
Christophe Debove
  • 6,088
  • 20
  • 73
  • 124
2
votes
2 answers

GMT/UTC (not local) time in Unix format

I'm using JavaScript and trying to get GMT+0/UTC+0 time (otherwhise called Zulu time) in Unix format. I've managed to get my local time in Unix format like this: var datetime = new Date() var unixtime = Math.floor(Number(datetime/1000)); but when I…
jsmith6
  • 39
  • 8
2
votes
2 answers

Getting the correct GMT format using DateFormat Object

If i have a File object how can i get the lastModified() date of this file in this GMT format: Mon, 23 Jun 2011 17:40:23 GMT. For example, when i call the java method lastModified() on a file and use a DateFormat object to…
Warz
  • 7,386
  • 14
  • 68
  • 120
2
votes
3 answers

how to know the local date without javascript

Hello I'm coding a chatting box and I'd like to stamp the current local time of the user next to its posted message. So I could use javascript : var date = new Date(); and send a string form of the variable to the server script but what if the…
vdegenne
  • 12,272
  • 14
  • 80
  • 106
2
votes
3 answers

Calendar not returning GMT

I am trying to get a calendar object set to GMT, but the getTime() always returns the time in GMT+1 (my current time). I have tried: Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); Calendar cal = new…
skeniver
  • 2,647
  • 6
  • 28
  • 34
2
votes
3 answers

Convert historical time to GMT

I need to convert some string times in the format "2011061411322100" into GMT - my first attempt is below. However, the problem is that the times are coming from another PC and is a historical time. So I am not getting the times in real time so I…
Paligulus
  • 493
  • 1
  • 4
  • 14
2
votes
7 answers

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 (timezoneOffset); //console : 05:30:00 how to get…
2
votes
1 answer

How do i store GMT offset with the DATETIME in MySQL Server

I was using C# with MS SQL Server 2008 Now i want to migrate to MySQL server 5.5 But i dont know how to store the GMT offset value in what data type of the MySQL Server? Please help me store C#'s datatype DateTimeOffset to MySQL server Anybody…
Chintan
  • 21
  • 1
2
votes
0 answers

Why do I get Wrong timeZone conversion in google script using this code?

It's hours I'm struggling to know why I don't get correct timeZone using this script ! I've used moment.js and moment-timezone and followed instruction explained here: Timezone conversion in a Google spreadsheet …
Majid
  • 421
  • 6
  • 19
2
votes
0 answers

Couldn't parse date-time string with GMT mark with parse_date_time function

I have data frame with dates columns in the following format: year, month, date, hour (24h), minute and GMT mark without separators ("201902011000GMT+3" as example) and try to convert it with parse_date_time function to date-time. I couldn't select…
Maxim
  • 33
  • 4
2
votes
2 answers

Convert datetime in UTC format to GMT+7 in MySQL

I have a datetime column in MySQL table in Y-m-d H:i:s UTC format: SELECT `transaction_time` FROM `transaction` LIMIT 1; //2018-10-12 09:36:12 the above wil show my database record which i alreade save in UTC format, how can i show it in GMT+7…
blue
  • 1,695
  • 3
  • 10
  • 17