How do I parse and convert a DateTime to the RFC 3339 date-time format?

How do I convert a DateTime structure to its equivalent RFC 3339 formatted string representation and/or parse this string representation back to a DateTime structure? The RFC-3339 date-time format...

How do I parse an ISO 8601-formatted date?

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 is the...

Output RFC 3339 Timestamp in Java

I want to output a timestamp with a PST offset (e.g., 2008-11-13T13:23:30-08:00). java.util.SimpleDateFormat does not seem to output timezone offsets in the hour:minute format, it excludes the...

Convert an RFC 3339 time to a standard Python timestamp

Is there an easy way to convert an RFC 3339 time into a regular Python timestamp? I've got a script which is reading an ATOM feed and I'd like to be able to compare the timestamp of an item in the...

Date format for 2008-02-01T10:03:23.793-06:00

In my project i am getting "2008-02-01T10:03:23.793-06:00" this date format in string i have to convert into NSDate i am using NSDateFormatter* dateFormatter = [[NSDateFormatter alloc]...

How do I parse RFC 3339 datetimes with Java?

I'm trying to parse the date returned as a value from the HTML5 datetime input field. Try it in Opera to see an example. The date returned looks like this: 2011-05-03T11:58:01Z. I'd like to parse...

Generate an RFC 3339 timestamp similar to Google Tasks API?

I am in the process of building an app that syncs with Google Tasks. As part part of the syncing, I want to compare the local task and the API task, and see which one has been changed more...

Generate RFC 3339 timestamp in Python

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-18T20:46:00.392227 My...

How to convert a timezone aware string to datetime in Python without dateutil?

I have to convert a timezone-aware string like "2012-11-01T04:16:13-04:00" to a Python datetime object. I saw the dateutil module which has a parse function, but I don't really want to use it as...

Parse rfc3339 date strings in Python?

I have a datasets where all the dates have the following format: 2012-10-09T19:00:55Z I'd like to be able to be able to use methods like .weekday on them. How do I convert them to the proper...

Converting ISO 8601 date time to seconds in Python

I am trying to add two times together. The ISO 8601 time stamp is '1984-06-02T19:05:00.000Z', and I would like to convert it to seconds. I tried using the Python module iso8601, but it is only a...

How to add Date and Time in RFC3339 format in java?

I have a date in string and a time in string ,now I just need to add them in RFC 3339 format and insert it into event object which is not taking string. u can see my code below String...

How can I parse / create a date time stamp formatted with fractional seconds UTC timezone (ISO 8601, RFC 3339) in Swift?

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, as...

How to convert Python's .isoformat() string back into datetime object

So in Python 3, you can generate an ISO 8601 date with .isoformat(), but you can't convert a string created by isoformat() back into a datetime object because Python's own datetime directives...

Parsing ISO_INSTANT and similar Date Time Strings

I created this wonderful static method yesterday, and it worked just fine - yesterday However, today it gives me this error. I guess it is from too many 0s before the Z. Can anyone recommend how...

RFC3339 time parsing in golang

I'm pulling a timestamp from a datebase, it is using RFC3339 format but the timezone is missing. So when I try to compare the timestamps it will be off. How do I change dbtime to be Eastern...

How do I rename a database in influxdb?

Looking through the influxdb website, documentation doesn't seem to cover some functionality that typical db commands would. Does anyone know how to move to a new name or outright rename a...

Google Calendar list of events with timeMin in calendar's timeZone

The Requirement I can retrieve list of google-calendar events following this reference: https://developers.google.com/calendar/v3/reference/events/list How can I get list of all the events between...

Symfony serialization: changing default DateTimeNormalizer format

I am trying to serialize an entity class which has some \DateTime fields. Everything works fine, but \DateTime objects are converted to string using the following format:...

What are valid date-time separators in RFC3339 strings?

I'm quite confused as to what's allowed as the time separator/designator in the RFC3339 standard. By time separator I mean the sequence of characters that draw the line between date and time. The...

Invalid RFC3339 format for time data

I've a data which I'm trying to convert to unix timestamp but I think my rfc3339 data coming from server is not proper. data:='2020-07-08T01:11:02-0700' startDate, err := time.Parse(time.RFC3339,...

Cannot connect to influxd by influx CLI tool

I installed influx in my CentOS 8.2 Server. [[email protected] opt]# influxd version InfluxDB 2.0.2 (git: 84496e507a) build_date: 2020-11-19T03:59:35Z [[email protected] opt]# influx version Influx CLI 2.0.2...

ImportError: cannot import name 'tasks_v2' from 'google.cloud'

I'm trying to use the Google Cloud Tasks code sample provided in the GCP documentation here: https://cloud.google.com/tasks/docs/creating-http-target-tasks (see code below). However, it's unclear...

How To Convert Date To RFC3339 Extended Date String With Milliseconds In Go?

How do I convert a date string in the format "2005-06-13 04:40:51" to RFC3339 date string UTC, e.g. "2005-06-13T04:40:51.000Z"? Also have asked this on Go forums, since have received helpful and...

Swagger not parsing custom datetime from @Schema annotation

I'm having a problem where Swagger 2.1.7 generated doc is treating a java.util.Date as a date-time even though I have the type, format as string and pattern as custom of the field in a @Schema...

Twitter API v2 in Python - issues with datetime conversion

I upgraded my Python-Twitter API access from v1 to v2. But as it seems, Twitter does not any longer accept my timestamp-formats for the updated functions start_time and end_time. For the v1 API I...

Parse RFC3339 Date String 'ss.SSSXX' with BeanIO

I'm trying to parse a String Date like this: 2021-03-19T13:08:32.58600 with BeanIO in my template: <field name="updatedAt" typeHandler="dateTypeHandler" format="yyyy-MM-dd'T'HH:mm:SSSXX"/> And I'm...

AMQ9660E: SSL key repository: password stash file absent or unusable

On Linux using IBM MQ V9.2.0 I have seen the following error EXPLANATION: The SSL key repository cannot be used because MQ cannot obtain a password to access it. Reasons giving rise to this error...

How to document RFC3339 date-time input in OpenAPI 3.0?

Using OpenAPI 3.0, I need to document how to provide an RFC3339 Date Time JSON input with an HTTP POST to my API endpoint. The example date-time format will look like...

Promtail: Timestamp not parsed properly into Loki and Grafana

Currently, I am looking to process logs in json format. I have managed to convert the given timestamp into a RFC3339 format. However, when parsing it through Promtail, it appears to be parsed but...

Relevant tags