Comments (2)
Ah, I discovered this by comparing the result of chrono::DateTime::to_rfc3339
to Python's datetime.datetime.isoformat
which claims to be 8601, but I guess it is Python that is out of compliance here by showing the second-level offsets.
from chrono.
It is unclear to me what you consider the issue.
But an offset with seconds is indeed difficult, as encoding it is not supported by RFC 3339, ISO 8601 or RFC 2822.
You can format it with %::z
.
from chrono.
Related Issues (20)
- [Feature Request] implement `Default` for `chrono::Duration` HOT 1
- Pre-Parse strftime string HOT 7
- `try_verify_against_date_command_format` fail when `LANG` is set to other locale HOT 10
- RFC: ditching the time 0.1 dependency on 0.4.x HOT 16
- Why does `chrono::NaiveDate::parse_from_str("2020-01-01 17", "%Y-%m-%d %H")` pass? HOT 15
- Old num-integer version HOT 3
- formatting `NaiveDateTime` as `RFC3339` gives a bad-explaining error HOT 2
- parse just TimeZone/Offset HOT 3
- Remove incorrect claims from README HOT 6
- Parsing explicitly space-padded format specifiers appears broken HOT 5
- Which parsing bugs can we fix in a minor release? HOT 4
- RFC: a new formatting API HOT 13
- Local time unsupport openwrt HOT 17
- Formatting timestamp with %#z panics HOT 3
- Readme lists an incorrect set of default features. HOT 7
- Panic on Windows HOT 8
- Addition of variants for the Fixed enum in v0.4.23 is a breaking change HOT 2
- A TZ string can be ambiguous HOT 13
- Disable wasmbind feature by default HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrono.