Questions tagged [rfc3339]

A RFC entitled "Date and Time on the Internet: Timestamps"

See for more details on RFC

RFC 3339 was released in July 2002.

RFC 3339 is a simplification of which excludes durations, week numbers and ordinal days.

Resources:

100 questions
1
vote
4 answers

Trim string before character in PHP

I have this date/time string $dateTime = '2016-11-01T16:00:59:999000Z'; I would like to be able to remove the 3 digits before the Z. Not really sure how to do that. I was trying to rework this: substr($dateTime, 0, -3); but couldn't figure out how…
sawyer762
  • 81
  • 2
  • 11
1
vote
2 answers

How do I parse an ISO 8601/RFC 3339 timezone with NSDateFormatter?

I have a date string like this (ISO 8601 combined date and time representation or RFC 3339): 2010-09-04T19:13:00Z But how do I configure the NSDateFormatter to accept this timezone format?
Neigaard
  • 3,726
  • 9
  • 49
  • 85
1
vote
3 answers

Date object issue Mybatis using postgreSQL

Actually i am not clear this issue is Java ,JSP or Mybatis . Currently facing issue is as follows : Front End Java JSP Struts 2 Spring Back End PostgreSQL 9.3.XX Issue In PostgreSQL birthday date; In jsp Page code written
Pramod Tiwari
  • 298
  • 5
  • 16
1
vote
3 answers

Format RFC3339 dates

I am receiving the following date in string format from the API 2015-04-18 06:08:28.000000 I want the date to be in the format of d/M/yyyy I tried the following NSString *datevalue = (NSString*)value; NSDateFormatter *formatter = [[NSDateFormatter…
Ibrahim Azhar Armar
  • 25,288
  • 35
  • 131
  • 207
1
vote
1 answer

How do I parse and convert DateTime to the RFC 3339 with C++

How do I parse a string equivalent RFC 3339 to any type of regular DateTime structure? The RFC 3339 date-time format is used in a number of specifications such as the Atom Syndication Format. Here is example of date time in ATOM(RFC 3339)…
Nick Bondarenko
  • 6,211
  • 4
  • 35
  • 56
1
vote
2 answers

How to transfer unicode to datetime in python?

I dumps a datetime object into to json object and I get: a = u'2015-02-17T15:06:23.869000' How to transfer it back to a datetime object?
jianfeng
  • 13
  • 1
  • 5
1
vote
2 answers

How to convert API timestamp into python datetime object

I am getting the following string from an API call: s = '2014-12-11T20:46:12Z' How would I then convert this into a python object? Is there an easy way, or should I be splitting up the string, for example: year = s.split('-')[0] month =…
David542
  • 104,438
  • 178
  • 489
  • 842
1
vote
2 answers

convert date time from EU time zone to PST

i have a list of datetimes in EU time zone: [u'2014-11-01T09:00:00+01:00', u'2014-11-02T00:00:00+01:00', u'2014-11-03T00:00:00+01:00', u'2014-11-04T00:00:00+01:00', u'2014-11-05T00:00:00+01:00', u'2014-11-06T00:00:00+01:00',…
jxn
  • 7,685
  • 28
  • 90
  • 172
1
vote
1 answer

Convert RFC3339? string to NSDate

I am trying to convert a string that looks like this (not sure if that fully correct RFC3339 format): 2014-07-07T16:11:02.085Z To an NSDate. I've looked around and have tried multiple formats and am using code from Apple on converting around. Here…
random
  • 8,568
  • 12
  • 50
  • 85
1
vote
1 answer

Getting the RFC 3339 timestamp for a day ago

Looking at this answer I can get the RFC 3339 based time fairly easily as the code for it shows: d = datetime.datetime.utcnow() # <-- get time in UTC print d.isoformat("T") + "Z" I am wondering how I would get the same format of time, but for…
ComputerLocus
  • 3,448
  • 10
  • 47
  • 96
1
vote
3 answers

GoogleDrive date format?

I am trying to synchronise a file, but the drive is complaining about the date format. It says in the documentation that it uses RFC 3339 date formats, but this is the error I am getting when passing it a valid ISO RFC 3339 compliant…
Craig
  • 4,268
  • 4
  • 36
  • 53
1
vote
5 answers

Converting "long form" datetime string into javascript date object

i have a current time webservice that returns a JSON object like so { "tz": "America\/Chicago", "hour": 15, "datetime": "Mon, 01 Apr 2013 15:46:58 -0500", "second": 58, "error": false, "minute": 46 } Is there an easy whay to…
Jeele Yah
  • 427
  • 7
  • 12
1
vote
3 answers

Python and RFC 3339 timestamps

Where can I find a routine for building an RFC 3339 time?
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
4 answers

Creating NSDate from NSString

I have the following NSString: NSString * dateString = @"2012-01-24T14:59:01Z"; I want to create an NSDate from that string. I looked up the NSDate Class Reference and thought of using dateWithNaturalLanguageString:: Creates and returns an NSDate…
dimme
  • 4,393
  • 4
  • 31
  • 51
0
votes
0 answers

Compare time with time zone (Z at the end) with datetime

I am trying to compare two dates - today and date from db. Db date format is 2021-10-04T21:00:00Z and today date is 2023-08-11 09:06:10 (%Y-%m-%d %H:%M:%S). How to compare these dates? I tried this: from datetime import datetime from time import…