Questions tagged [rfc3339]

A RFC entitled "Date and Time on the Internet: Timestamps"

See for more details on RFC

RFC 3339 was released in July 2002.

RFC 3339 is a simplification of which excludes durations, week numbers and ordinal days.

Resources:

100 questions
1
vote
1 answer

Zend Google Calendar API - How to Change DateTime Format?

I am using the Zend Framework Gdata for the Google Calendar API and the datetime outputs in RFC3339 (which looks like this: 2012-01-19T22:00:00.000-08:00). What php code do I need to add in order to convert that to UTC so that it looks like this:…
1
vote
0 answers

Why is the time string returned by the cnosdb query different from the RFC3339 format of golang?

golang code: func main() { fmt.Println(time.Now().Format(time.RFC3339)) fmt.Println(time.Now().UTC().Format(time.RFC3339)) } golang output: 2023-09-01T10:56:32+08:00 2023-09-01T02:56:32Z cnosdb query result: | cnosdb | telegrafbfr …
learn_more
  • 145
  • 10
1
vote
1 answer

How can I display chrono DateTime without fractional seconds?

If I print the current time directly, it includes many trailing decimals: println!("{:?}", chrono::offset::Utc::now()); 2022-12-01T07:56:54.242352517Z How can I get it to print like this? 2022-12-01T07:56:54Z
GranBoh
  • 67
  • 8
1
vote
1 answer

How to keep unknown local offset when converting from RFC3339?

I recieve a timestamp that follows the RFC3339 standard. The sender used the "Unknown Local Offset Convention" provided by RFC3339 as the users time preference is unkown, so I recieve a timestamp like 1970-01-01T00:00:00.0000-00:00 and I need to…
Nico
  • 49
  • 5
1
vote
1 answer

How to export influxdb database to csv with RFC3339 timestamps

I would like to export my InfluxDB database to a CSV file. Im currently using the following code: $ influx -database 'Dabtabase_name' -execute 'SELECT * FROM table_name' -format csv > test.csv The code works but timestamps are displayed as numbers…
Portfedh
  • 178
  • 1
  • 13
1
vote
0 answers

RFC3339 and in UTC/Zulu string to integer C++

I am writing a C+ application for an embedded ARM device. My application receives a date and time string in format RFC3339 and in UTC/Zulu. For example "2020-12-14T23:18:13Z" I need to get the time from this in seconds, compare it to the current…
Engineer999
  • 3,683
  • 6
  • 33
  • 71
1
vote
1 answer

Is using T to separate date and time inconsistent with RFC3339?

In the documentation for date/time type in Postgres, it says: ISO 8601 specifies the use of uppercase letter T to separate the date and time. PostgreSQL accepts that format on input, but on output it uses a space rather than T, as shown above. This…
1
vote
2 answers

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 standard states in section 5.6 different things that…
bgusach
  • 14,527
  • 14
  • 51
  • 68
1
vote
1 answer

How to validate that a string is a time in RFC3339 format?

I have the following string '2012-10-09T19:00:55Z' and I want to verify it's in RFC3339 time format. One (wrong) approach would be to do something like the following: datetime.strptime('2012-10-09T19:00:55Z', '%Y-%m-%dT%H:%M:%S.%fZ') The issue here…
Newskooler
  • 3,973
  • 7
  • 46
  • 84
1
vote
1 answer

Does message rfc822 allow a new line between two headers?

Does message rfc822 allow a new line in between two headers? After Content-Disposition I got a newline. Attaching Image
1
vote
1 answer

How to calculate difference between now and a RFC3339 timestamp in Android Studio?

I am importing some sensor-data in my app over a server with JSON objects. They contain the value and time of the last measurement. The time is in RFC3339 format send as a string, e.g. 2020-06-19T15:32:25.528Z. Now, instead of displaying the last…
Anonymix
  • 13
  • 3
1
vote
0 answers

Represent the time and type of different events in an API response

I have an "event" that I am trying to represent in an API response. What is the best-practice (most rfc3339 compliant?) way to handle dates and times? The options are an all-day event (single day), multiple day event (may or may not have start and…
1
vote
1 answer

How can I parse RFC 3339 date string into ZondeDateTime?

Problem: I should parse an RFC3339 date string. It works fine with ISO_ZONED_DATE_TIME: ZonedDateTime.parse("1985-04-12T23:20:50.52Z", ISO_ZONED_DATE_TIME); ZonedDateTime.parse("1996-12-19T16:39:57-08:00", ISO_ZONED_DATE_TIME); Let's say I'll fix a…
mkUltra
  • 2,828
  • 1
  • 22
  • 47
1
vote
1 answer

I'm trying to build an RFC3339 timestamp in C. How do I get the timezone offset?

I'm attempting to put together an RFC3339 timestamp which will be used to write a certain entry to a database. That would be formatted as, for example, 2004-10-19 10:23:54+02, where the +02 is the offset in hours from GMT. It's this offset which is…
K. Haskins
  • 55
  • 1
  • 5
1
vote
1 answer

Understanding the RFC3339 TimeStamp Standard

I am currently creating a simple sign in sheet that connects to the Google Calendar API. When user enters the prompted information, which includes start Datetime and Endtime, it should create a calendar event based on the user input. I managed to…
cruise_lab
  • 649
  • 8
  • 21