iso8601 Questions

4

Solved

I have a year (2002) and I'm trying to get it into the following format: 2002-00-00T00:00:00 I tried various iterations, the last of which was this: $testdate = DateTime::createFromFormat(DateTi...
Ake asked 9/9, 2011 at 22:7

5

I want to write a function that takes a string and returns True if it is a valid ISO-8601 datetime--precise to microseconds, including a timezone offset--False otherwise. I have found other questi...
Costar asked 13/12, 2016 at 20:22

2

Suppose I have an ISO 8601 duration, expressed as "P1M". Phrased colloquially, this means "one month." Is there a standard rule for converting this into a number of seconds, assuming the start date...
Shaner asked 8/10, 2014 at 20:23

4

Solved

I have a string in standard ISO 8601 format that contains the date/time returned from a web service like so: String dtStart = "2010-10-15T09:27:37Z" How do I get this into an object such as Time...
Restricted asked 15/10, 2010 at 10:24

2

Solved

JSON Web Token is a fairly recent standard (May 2015) and yet they decided to go for UNIX timestamps in order to represent dates. Doesn't this expose the standard to a potential Year 2038 problem i...
Diffusive asked 11/3, 2018 at 13:35

5

Solved

I have the following string: 20180207T124600Z How can I turn this into a Date object? Here is my current code but it returns nil: let dateString = "20180207T124600Z" let dateFormatter = ISO8601...
Hemelytron asked 19/2, 2018 at 13:14

1

Solved

Need to store duration in ISO 8601 format P[n]Y[n]M[n]DT[n]H[n]M[n]S in PostgreSQL, then retrieve it in a script in the same format. In what data type to store ISO 8601 duration in PostgreSQL?
Burnaby asked 7/11, 2019 at 21:24

3

Solved

I pick some date and time in javascript and then want to store it on server (.NET). Dates are supposed to be in future from the current moment (so they won't be before 1970). Having read topics her...
Photoengrave asked 23/1, 2014 at 6:29

6

I have thousands of dates in the following format: 2011-10-02T23:25:42Z (aka ISO 8601 in UTC) What MySQL data type should I use for storing such a ISO8601 date in a MySQL database? E.g. Datetime,...
Wilbertwilborn asked 8/11, 2011 at 8:1

4

My API is representing time to clients using ISO 8601. We have a feature where we want to display which timezone it was from. By purely storing the timezone offset, we are loosing track of that det...
Huston asked 11/1, 2016 at 20:58

2

Solved

For passing times in JSON to/from a web API, why would I choose to use an ISO8601 string instead of simply the UTC epoch value? For example, both of these are the same: Epoch = 1511324473 iso8601 ...
Mide asked 22/11, 2017 at 4:25

2

I would like to parse time.Duration. The duration is "PT15M" (string/bytes) and would like to convert it to a valid time.Duration. If this were a time.Time thing, I would use: t, err := time....
Forgotten asked 24/1, 2015 at 13:28

3

Solved

There are plenty of questions asking how to do this the other way (converting from this format), but I can't find anything on how to output in the ISO 8601 duration format in PHP. So I have a heap...
Graciagracie asked 9/11, 2012 at 2:12

1

Solved

In the Java class java.time.Period the method normalized() has the following in its Javadoc: This normalizes the years and months units, leaving the days unit unchanged. The superclass' method...
Cisneros asked 13/7, 2019 at 17:26

3

Solved

How can I obtain current date in the following format using Bash YYYY-MM-DDThh:mm:ss
Incomer asked 24/10, 2013 at 8:38

7

I'm trying to generate an RFC 3339 UTC timestamp in Python. So far I've been able to do the following: >>> d = datetime.datetime.now() >>> print d.isoformat('T') 2011-12-18T...
Osmunda asked 19/12, 2011 at 1:57

6

Solved

I have a DateTime string ISO8601 formated 2012-10-06T04:13:00+00:00 and the following Regex which does not match this string #(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\+(\d{2})\:(\d{...
Cowen asked 6/10, 2012 at 2:25

7

I have a JS date that is being converted by Dojo into RFC822 format. The function call - dojo.date.toRfc3339(jsDate), generates the following date - 2007-02-26T20:15:00+02:00. I have an applicatio...
Donatist asked 12/5, 2010 at 23:15

3

I use format string for DateTimeFormatter: uuuu-MM-dd'T'HH:mm:ssX which must support all possible formats of timezone offset, including: Z, 00, 00:00, 0000 According to official DateTimeFormatte...
Brahmani asked 5/2, 2019 at 14:4

12

Solved

I'm looking for an easy way to parse a string that contains an ISO-8601 duration in Objective C. The result should be something usable like a NSTimeInterval. An example of an ISO-8601 duration: P1...
Eirene asked 18/7, 2009 at 1:32

1

Solved

Unlike newer versions of Angular, Angular 4 DatePipe doesn't seem to support passing in a timezone as a parameter. I have a backend service returning an ISO 8601 formatted datetime string without ...
Patriarchate asked 4/12, 2018 at 22:13

2

I cannot set properly the date format when using retrofit and trying to read a date like this: 2015-08-29T11:22:09.815479Z An the GSON converter I'm setting is like this: GsonConverter gsonConv...
Array asked 29/8, 2015 at 11:35

3

Solved

An ISO 8601 datetime with a timezone is formatted like this: 2018-09-07T05:28:42Z However, I need to represent some dates in my system where the precision is days, not seconds, which means that ...
Paraphrase asked 7/9, 2018 at 5:43

2

Solved

I would like to convert a full date/time to ISO 8601 format like JavaScript's new Date().toISOString() does, giving a YYYY-MM-DDTHH:mm:ss.sssZ format. I cannot find a base library function or pack...
Melodist asked 26/10, 2013 at 23:21

11

Solved

I have a date in the following format: 2010-03-01T00:00:00-08:00 I have thrown the following SimpleDateFormats at it to parse it: private static final SimpleDateFormat[] FORMATS = { new SimpleDa...
Lubow asked 3/3, 2010 at 21:44

© 2022 - 2024 — McMap. All rights reserved.