Questions tagged [iso8601]

ISO 8601 is the International Standards Organization's standard for representing time as a string. It covers dates, times, timezones, durations, and many other things.

911 questions
-1
votes
1 answer

Android conversion from Calendar to ISO 8601

I need a conversion from Calendar (from class import java.util.Calendar) to standard ISO 8601 data time, that is: YYYY-MM-DDThh:mm:ss
GVillani82
  • 17,196
  • 30
  • 105
  • 172
-2
votes
0 answers

JSON deserialize with special timezone

I received the JSON response as below from our third party. I can not deserialize this data in the C# app with the DateTime field. How can I resolve this problem? (https://i.stack.imgur.com/dF1LZ.png) But in my opinion, I think it does not follow…
Khanh Tran
  • 13
  • 4
-2
votes
1 answer

Convert unix microseconds to ISO 8601 date time string in C++

Problem: I got a signed integer 64-bit variable of unix time with microseconds. I want to convert that to ISO 8601 Date time format. The format must be stored in a string in C++. Notice that this is microseconds and not seconds and the output must…
euraad
  • 2,467
  • 5
  • 30
  • 51
-2
votes
1 answer

Java LocalDateTime dropping zeros while parsing?

I am tying to parse a String into LocalDateTime and back the other way around. But the parser is dropping the zeros of the seconds section of the time. This question is related (Not the same) to this other question. However I am posting it again…
sebsmgzz
  • 361
  • 2
  • 11
-2
votes
1 answer

how to convert ISO 8601 to Date time(Utc) in Python

I have time stamp in ISO format "2022-06-19T00:00:00+00:00" and want to convert it in to Date time(utc) format "Jun 19, 2022"
ren
  • 25
  • 5
-2
votes
1 answer

Python: How to compare date string in ISO 8601 format with current time

date_str = '2022-03-29T17:49:35.914417-04:00' How to compare above date string with current date time?
Abhinav manthri
  • 151
  • 1
  • 14
-2
votes
1 answer

DateTime in UTC with toISOString

I have the following code: console.log( new Date().toISOString() ) This returns: 2021-10-14T08:28:28.467Z In my opinion it should return: 2021-10-14T08:28:28.000Z. The difference is the 000Z. In all examples (documentation) I see that it…
nhatimme
  • 383
  • 3
  • 19
-2
votes
1 answer

Transform datetimes in python

How can I transform a string datetime like this: "2018-07-13T00:00:00+00:00" Into this? "2018-07-13T00:00:00.000000+00:00"
sg_sg94
  • 2,248
  • 4
  • 28
  • 56
-2
votes
1 answer

Convert ISO 8601 timestamp string to epoch seconds in Java

I am receiving a string in ISO 8601 date-time format 2020-11-03T15:23:24.388Z. What is the best way to convert this into epoch seconds in Java?
Hoya Coder
  • 41
  • 5
-2
votes
1 answer

How do I convert a date in an html table cell to iso 8601 format?

I have this td: Jul 18 2019 12:00AM and I need to convert it to ISO 8601 format using JavaScript. Vanilla or using jQuery would be fine, it's just that I keep getting an 'undefined' when I attempt to parse it, but I think it is having…
-2
votes
2 answers

Converting "2013-01-06T22:25:08.733" to "2013-01-06 22:25:08" in python

I have a big .csv file which holds machine log data. One of the fields is timestamp. It stores date and time as shown in the title and I would like to drop the milli seconds and convert it into the format also shown in title. Can anyone help me with…
Azee.
  • 703
  • 1
  • 5
  • 12
-2
votes
1 answer

Extracting time from timestamp

I'm trying to extract the time section from an ISO8601 timestamp. e.g. From the following timstamp"0001-01-01T17:45:33" I want to extract this part "17:45:33".
Anis_Stack
  • 3,306
  • 4
  • 30
  • 53
-2
votes
3 answers

regular expression for datetimeformat (yyyy-mm-ddThh:mm:ss) ISO8601 format

I want to validate that calendar object should be as 2014-05-05T12:12:30.How to validate a this using regular expression
Debesh Kuanr
  • 35
  • 1
  • 1
-2
votes
1 answer

Extract time from ISO8601 string

I have an ISO8601 string 2013-05-11 05:54:07.589698 Is there anyway to extract just the time from this without string manipulation?
-2
votes
2 answers

convert iso-8601 datetime to utc time rails

I have an ISO-8601 datetime stamp, and need to convert it into local time in GMT. What is the way to do it in Ruby on Rails? I have '1325233011', and need to convert it into local time in GMT standards.
Taimoor Changaiz
  • 10,250
  • 4
  • 49
  • 53
1 2 3
60
61