iso8601 Questions

7

Solved

I have a weird problem, I need to parse a date string that looks like 1997-02-14T00:00:00.0000000+05:30. The odd thing about the date string is the time zone information. It's +05:30 instead of the...
Megan asked 12/10, 2009 at 14:15

16

Solved

I have a Date object. How do I render the title portion of the following snippet? <abbr title="2010-04-02T14:12:07">A couple days ago</abbr> I have the "relative time in words" porti...
Birdhouse asked 4/4, 2010 at 4:4

9

How can I convert duration with JavaScript, for example: PT16H30M
Muldon asked 18/2, 2013 at 10:27

8

Solved

I'm trying to grab the date from my database in a standard timestamp and display it as ISO 8601. I'm unable to easily do it in PHP so I'm trying to do it in my SELECT statement. This is what I have...
Rozamond asked 17/2, 2012 at 1:45

28

I need to parse RFC 3339 strings like "2008-09-03T20:56:35.450686Z" into Python's datetime type. I have found strptime in the Python standard library, but it is not very convenient. What ...
Dynamite asked 24/9, 2008 at 15:17

3

I need the current system date and time in 2022-10-03T19:45:47.844Z format in a java class. I tried using the zoneddatetime and simple date format but couldn't get the write syntax or code from onl...

31

Solved

I am trying to convert an ISO 8601 formatted String to a java.util.Date. I found the pattern yyyy-MM-dd'T'HH:mm:ssZ to be ISO8601-compliant if used with a Locale (compare sample). However, using...
Vullo asked 4/2, 2010 at 17:52

2

Is there a way to convert a string given in ISO 8601 period format to a format readable by humans and also translated to specified language? Example: P1W --en--> 1 Week P2W --en--> 2 Weeks P...
Base asked 5/10, 2022 at 11:36

2

Solved

What datetime format is this 2022-04-05T12:39:34.579775Z and how to convert to US date time format but in GMT timezone with a formula in Google Sheets when it appears in A1 and I want to return cor...
Articulate asked 3/10, 2022 at 20:34

5

Solved

How do you convert a timezone-aware datetime object to the equivalent non-timezone-aware datetime for the local timezone? My particular application uses Django (although, this is in reality a gene...
Boa asked 27/3, 2011 at 21:24

4

Solved

I am using java 11. Wanted to know whats the best(Most importantly Recommended) way to validate if the datetime string is ISO8601 complaint in java. Also how to compare this string value with java....
Groff asked 16/11, 2020 at 16:29

8

Solved

How can I sort this array by date (ISO 8601)? var myArray = new Array(); myArray[0] = { name:'oldest', date:'2007-01-17T08:00:00Z' } myArray[1] = { name:'newest', date:'2011-01-28T08:00:00Z' } myA...
Deign asked 30/8, 2012 at 8:5

6

Solved

i'm trying to format the date like this, 2015-12-02T12:57:17+00:00 here's my code time.strftime("%Y-%m-%dT%H:%M:%S%z", time.gmtime()) which gives this result, 2015-12-02T12:57:17+0000 i can'...
Blanca asked 2/12, 2015 at 14:9

4

Solved

I am using following ISO8601 format: YYYY-MM-DDThh:mm:ssZ And I used OffsetDateTime.parse() to parse this format. I was able to parse date-time by passing t (instead of T) and z (instead of Z) her...
Jahdai asked 1/12, 2020 at 8:20

4

Solved

I need to convert a date in Windows PowerShell to the ISO 8601 format. In Linux/Unix it was no problem with TZ=0 date -d "<random-format>" +%Y-%m-%dT%H:%M:%S.000Z Now I need to do t...
Corr asked 15/8, 2017 at 8:45

10

Solved

I need to parse an ISO8601 date/time format with an included timezone (from an external source) in Excel/VBA, to a normal Excel Date. As far as I can tell, Excel XP (which is what we're using) does...
Dacey asked 4/2, 2011 at 8:52

2

I'm trying to understand the difference between UTC and ISO formats and when to use what when transferring messages between servers. So When I try the following this is what I get new Date().toISOS...
Mosa asked 14/11, 2019 at 0:58

15

I have a file. In Python, I would like to take its creation time, and convert it to an ISO time (ISO 8601) string while preserving the fact that it was created in the Eastern Time Zone (ET). How d...
Oestradiol asked 27/1, 2010 at 22:22

9

Solved

This docs mention moment.ISO_8601 as a formatting option (from 2.7.0 - http://momentjs.com/docs/#/parsing/special-formats/), but neither of these work (even 2.7.0): var date = moment(); date.forma...
Bounden asked 8/9, 2014 at 13:7

3

Wikipedia gives an example of an ISO 8601 example of a repeating interval: R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M This is what this means: R5 means that the interval after the slash is repeate...
Milker asked 7/9, 2011 at 19:23

6

Solved

I think the title says it: I want to use ISO 8601 with timezones as default DateTime-Format in Laravels Eloquent. I got this class mEloquent extends Eloquent { protected function getDateFormat()...
Newsworthy asked 29/7, 2014 at 19:52

2

Solved

Is there any easy way to convert an ISO 8601 string time duration (P(n)Y(n)M(n)DT(n)H(n)M(n)S) to time.Duration? From Wikipedia on ISO 8601 durations: For example, "P3Y6M4DT12H30M5S" rep...
Suchta asked 3/11, 2020 at 21:28

2

Solved

I need to check if a DateTime is in a valid ISO8601 format. Like: #iso8601? I checked if ruby has a specific method but I haven't found any. Currently I'm using date.iso8601 == date to check this....
Subdivide asked 25/7, 2015 at 14:6

2

Solved

I have the following Iso8601 date-time string 2018-03-12T10:34:15-0200 and after I parse it Carbon::parse("2018-03-21T10:34:15-0200", 'UTC') and save it to mysql db datetime column I have 2018-...
Simard asked 25/9, 2018 at 19:32

9

Solved

I had code that parses date as follows: String ALT_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; SimpleDateFormat sdf = new SimpleDateFormat( ALT_DATE_TIME_FORMAT); Date date = sdf.parse(requi...
Cassaundra asked 27/12, 2010 at 23:44

© 2022 - 2024 — McMap. All rights reserved.