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...
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...
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...
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...
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...
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 ...
2
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...
3
Solved
How can I obtain current date in the following format using Bash
YYYY-MM-DDThh:mm:ss
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...
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
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...
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 ...
2
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...
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...
© 2022 - 2024 — McMap. All rights reserved.