Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4e39b3

Browse files
committed
v0.3.37 release
1 parent0943997 commitd4e39b3

File tree

5 files changed

+46
-6
lines changed

5 files changed

+46
-6
lines changed

‎CHANGELOG.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,49 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
66

77
---
88

9+
##0.3.37[2024-12-03]
10+
11+
###Added
12+
13+
-`Time::MAX`, equivalent to`time!(23:59:59.999999999)`
14+
-`[year repr:century]` is now supported in format descriptions. When used in conjunction with
15+
`[year repr:last_two]`, there is sufficient information to parse a date. Note that with the
16+
`large-date` feature enabled, there is an ambiguity when parsing the two back-to-back.
17+
- Parsing of`strftime`-style format descriptions, located at
18+
`time::format_description::parse_strftime_borrowed` and
19+
`time::format_description::parse_strftime_owned`
20+
-`time::util::refresh_tz` and`time::util::refresh_tz_unchecked`, which updates information
21+
obtained via the`TZ` environment variable. This is equivalent to the`tzset` syscall on Unix-like
22+
systems, with and without built-in soundness checks, respectively.
23+
24+
###Changed
25+
26+
- Obtaining the system UTC offset on Unix-like systems should now succeed when multi-threaded.
27+
However, if the`TZ` environment variable is altered, the program will not be aware of this until
28+
`time::util::refresh_tz` or`time::util::refresh_tz_unchecked` is called.`refresh_tz` has the
29+
same soundness requirements as obtaining the system UTC offset previously did, with the
30+
requirements still being automatically enforced.`refresh_tz_unchecked` does not enforce these
31+
requirements at the expense of being`unsafe`. Most programs should not need to call either
32+
function.
33+
34+
Due to this change, the`time::util::local_offset` module has been deprecated in its entirety. The
35+
`get_soundness` and`set_soundness` functions are now no-ops.
36+
37+
Note that while calls_should_ succeed, success is not guaranteed in any situation. Downstream
38+
users should always be prepared to handle the error case.
39+
40+
###Fixed
41+
42+
- Floating point values are truncated, not rounded, when formatting.
43+
- RFC3339 allows arbitrary separators between the date and time components.
44+
- Serialization of negative`Duration`s less than one second is now correct. It previously omitted
45+
the negative sign.
46+
-`From<js_sys::Date> for OffsetDateTime` now ensures sub-millisecond values are not erroneously
47+
returned.
48+
949
##0.3.36[2024-04-10]
1050

11-
####Fixed
51+
###Fixed
1252

1353
-`FormatItem` can be used as part of an import path. See[#675] for details.
1454

‎Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55

66
[workspace.dependencies]
77
time-core = {path ="time-core",version ="=0.1.2" }
8-
time-macros = {path ="time-macros",version ="=0.2.18" }
8+
time-macros = {path ="time-macros",version ="=0.2.19" }
99

1010
criterion = {version ="0.5.1",default-features =false }
1111
deranged = {version ="0.3.9",default-features =false,features = [

‎time-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name ="time-macros"
3-
version ="0.2.18"
3+
version ="0.2.19"
44
authors = ["Jacob Pratt <open-source@jhpratt.dev>","Time contributors"]
55
edition ="2021"
66
rust-version ="1.67.1"

‎time/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name ="time"
3-
version ="0.3.36"
3+
version ="0.3.37"
44
authors = ["Jacob Pratt <open-source@jhpratt.dev>","Time contributors"]
55
edition ="2021"
66
rust-version ="1.67.1"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp