-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partial seconds returns 0 value #27
Comments
I don't really recognized the 'PT' you use here. How can you reproduce this? I tried something like this: #[test]
fn issue_27() {
assert_eq!(
time("1420.061S"),
Ok(
Time {
hour: 14,
minute: 20,
second: 0,
millisecond: 61,
tz_offset_hours: 0,
tz_offset_minutes: 0,
},
)
);
} |
Ok, thank you. Will take a look and let you know. |
@hoodie I've looked further into this after looking through the XMLSchema.xsd and this specific type designation as described here: https://www.w3.org/TR/xmlschema-2/#duration. What appears to be the case is that |
@hoodie I was looking through your tests and noticed that issue that I've noted above is the same one described in your test here: https://github.com/badboy/iso8601/blob/master/tests/lib.rs#L1057, I'm not correct? |
Hello,
I've encountered the scenario where duration format for seconds is presented as follows
"PT1420.061S" which would correspond to seconds and fractional seconds (ms). It appears that when I pass this value to your library, I'm getting a 0 value across all fields, which I would assume is the default.
Is there is something I need to do here?
Thank you
The text was updated successfully, but these errors were encountered: