iso8601 Questions
5
Solved
I have the following declaration in my object:
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSX")
private ZonedDateTime start;
And when I parse timestamps like ...
Maestricht asked 8/12, 2016 at 10:32
4
Solved
I have a Web API application that returns JSON to consumers who may not be using Microsoft technologies. When my controller returns an object with DateTime properties as JSON, it serializes the dat...
Gymnosophist asked 15/3, 2017 at 13:36
8
Solved
I need to display and handle UTC dates in the following format:
2013-06-28T22:15:00Z
As this format is part of the ISO8601 standard I have no trouble creating DateTime objects from strings lik...
13
does anyone have a good regex pattern for matching iso datetimes?
ie: 2010-06-15T00:00:00
1
Solved
I have the following ISO8601-compliant string:
2024-03-25T11:34:15.000Z
I need to convert it to java Date. I found the following solution:
Date date = Date.from(Instant.parse("2024-03-25T11:3...
2
Solved
I've got week data in ISO 8601 format. E.g.:
weekA = '2012-W48'
weekB = '2013-W03'
Is there a class in Java that can represent those weeks and supports basic temporal operations? I tried LocalDate...
5
Solved
Given a datetime.timedelta, how to convert it into an ISO 8601 duration string?
For example, given datetime.timedelta(0, 18, 179651), how do I get 'PT18.179651S'?
For the reverse, see Is there an ...
Lassie asked 27/11, 2014 at 10:20
2
Solved
Is there a way to make the Python logger output dates in ISO8601 format?
My logger is set up like this...
logging.basicConfig(
format="%(message)s - %(asctime)s)
From the Python docs (locate...
Dick asked 15/6, 2018 at 10:10
6
var dateInCST; //Getting CST date as input.
/*Triming the time part and retaining only the date.*/
var onlyDateInCST = new Date(dateInCST.getUTCFullYear(), dateInCST.getUTCMonth(), dateInCST.ge...
Thar asked 6/3, 2017 at 16:44
4
Solved
I need to make a function for calculating the number of weeks of a given year in Swift according to the ISO-week-system (ISO8601). I need the number as an Int. First I figured I need to make an NSD...
2
I know this is a pretty common question, but I don't feel like the answers I found really solve the problem. I will outline my specific use case and present summaries to the information from other ...
Bonneau asked 21/3, 2013 at 17:47
5
Solved
I have the dataframe below (using python/pandas) and wish to convert the
q_string q_visits q_date
red 1790 02/10/2012 00:00
blue 364 02/10/2012 00:00
current 280 02/10/2012 00:00
molecular 259 02/...
4
Solved
How should a duration of 500 milliseconds be expressed using ISO 8601? To me, the documentation is not 100% clear. Is it just "PT0.5S" ?
5
I supply "2019-04-05T16:55:26Z" to Python 3's datetime.datetime.fromisoformat and get Invalid isoformat string, though the same string works without the Z. ISO8601 allows for the Z - http...
Downgrade asked 5/4, 2019 at 19:35
10
Solved
In a Bash script, I want to print the current datetime in ISO 8601 format (preferably UTC), and it seems that this should be as simple as date -I:
http://ss64.com/bash/date.html
But this doesn't ...
3
Solved
I realise that JSON has no real date format and that using ISO 8601 is a good bet given that's what JavaScript uses. What about a duration? JavaScript has no built in format.
I came across ISO 86...
6
Solved
I have an ISO 8601 date string in the following format:
String myIsoDateString = "2019-02-27T23:00:00.000Z"
I need to use the date string as part of a query I'm running in BigQuery. I'm trying t...
Innocency asked 14/3, 2019 at 3:31
6
Solved
I have a bunch of ISO-8601 formatted strings in a column of my sheet. How can I get google sheets to treat them as Dates so I can do math on them (difference in minutes between two cells, for examp...
Villainage asked 27/5, 2015 at 20:47
19
Given:
DateTime.UtcNow
How do I get a string which represents the same value in an ISO 8601-compliant format?
Note that ISO 8601 defines a number of similar formats. The specific format I am lo...
Stander asked 22/9, 2008 at 13:56
14
Solved
How to generate a date time stamp, using the format standards for ISO 8601 and RFC 3339?
The goal is a string that looks like this:
"2015-01-01T00:00:00.000Z"
Format:
year, month, day, ...
2
Solved
Given the following datetime:
d = datetime.datetime(2018, 10, 9, 8, 19, 16, 999578, tzinfo=dateutil.tz.tzoffset(None, 7200))
d.isoformat() results in the string:
'2018-10-09T08:19:16.999578+02...
Cookery asked 23/10, 2018 at 8:12
7
This is my ISO formatted date. In here I want to get time like "11:00" by JavaScript.
I used this method:
new Date(Mydate).toLocaleString();
But it gave time as "16:30". Is the...
Treva asked 11/12, 2013 at 11:57
3
In ISO 8601, durations are given in the format P[n]Y[n]M[n]DT[n]H[n]M[n]S.
Examples:
20 seconds:
PT20.0S
One year, 2 month, 3 days, 4 hours, 5 minutes, 6 seconds:
P1Y2M3DT4H5M6S
Question:
...
2
I have timestamps looking like this:
2015-03-21T11:08:14.859831
2015-03-21T11:07:22.956087
I read a Wiki article on ISO 8601, but did not get the meaning of the last 6 digits here.
I tried ge...
Moody asked 17/7, 2015 at 13:45
3
Solved
I have the following code:
String ModifiedDate = "1993-06-08T18:27:02.000Z" ;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
Date ModDate = sdf.parse(ModifiedDate);...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.