/external/rust/crates/chrono/src/naive/ |
D | time.rs | 19 pub const MIN_TIME: NaiveTime = NaiveTime { secs: 0, frac: 0 }; 20 pub const MAX_TIME: NaiveTime = NaiveTime { secs: 23 * 3600 + 59 * 60 + 59, frac: 999_999_999 }; 182 pub struct NaiveTime { struct 187 impl NaiveTime { implementation 207 pub fn from_hms(hour: u32, min: u32, sec: u32) -> NaiveTime { in from_hms() argument 208 NaiveTime::from_hms_opt(hour, min, sec).expect("invalid time") in from_hms() 232 pub fn from_hms_opt(hour: u32, min: u32, sec: u32) -> Option<NaiveTime> { in from_hms_opt() argument 233 NaiveTime::from_hms_nano_opt(hour, min, sec, 0) in from_hms_opt() 255 pub fn from_hms_milli(hour: u32, min: u32, sec: u32, milli: u32) -> NaiveTime { in from_hms_milli() argument 256 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).expect("invalid time") in from_hms_milli() [all …]
|
D | datetime.rs | 20 use naive::{IsoWeek, NaiveDate, NaiveTime}; 64 time: NaiveTime, 85 pub fn new(date: NaiveDate, time: NaiveTime) -> NaiveDateTime { in new() 152 let time = NaiveTime::from_num_seconds_from_midnight_opt(secs as u32, nsecs); in from_timestamp_opt() 252 pub fn time(&self) -> NaiveTime { in time() argument
|
D | date.rs | 18 use naive::{IsoWeek, NaiveDateTime, NaiveTime}; 544 pub fn and_time(&self, time: NaiveTime) -> NaiveDateTime { in and_time() 592 NaiveTime::from_hms_opt(hour, min, sec).map(|time| self.and_time(time)) in and_hms_opt() 648 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).map(|time| self.and_time(time)) in and_hms_milli_opt() 704 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).map(|time| self.and_time(time)) in and_hms_micro_opt() 760 NaiveTime::from_hms_nano_opt(hour, min, sec, nano).map(|time| self.and_time(time)) in and_hms_nano_opt()
|
/external/rust/crates/rusqlite/src/types/ |
D | chrono.rs | 5 use chrono::{DateTime, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; 31 impl ToSql for NaiveTime { implementation 39 impl FromSql for NaiveTime { implementation 47 match NaiveTime::parse_from_str(s, fmt) { in column_result() 132 use chrono::{DateTime, Duration, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; 161 let time = NaiveTime::from_hms(23, 56, 4); in test_naive_time() 169 let v: NaiveTime = db in test_naive_time() 179 let time = NaiveTime::from_hms(23, 56, 4); in test_naive_date_time() 206 let time = NaiveTime::from_hms_milli(23, 56, 4, 789); in test_date_time_utc() 245 let time = NaiveTime::from_hms_milli(23, 56, 4, 789); in test_date_time_local() [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | fixed.rs | 12 use naive::{NaiveDate, NaiveDateTime, NaiveTime}; 164 impl Add<FixedOffset> for NaiveTime { implementation 165 type Output = NaiveTime; 168 fn add(self, rhs: FixedOffset) -> NaiveTime { in add() argument 173 impl Sub<FixedOffset> for NaiveTime { implementation 174 type Output = NaiveTime; 177 fn sub(self, rhs: FixedOffset) -> NaiveTime { in sub() argument
|
D | local.rs | 12 use naive::NaiveTime; 40 let time = NaiveTime::from_hms_nano( in tm_to_datetime()
|
D | mod.rs | 24 use naive::{NaiveDate, NaiveDateTime, NaiveTime}; 82 pub fn and_time(self, time: NaiveTime) -> LocalResult<DateTime<Tz>> { in and_time()
|
/external/rust/crates/chrono/src/format/ |
D | mod.rs | 32 use naive::{NaiveDate, NaiveTime}; 394 time: Option<&NaiveTime>, in format_item() argument 407 time: Option<&NaiveTime>, in format_inner() argument 692 time: Option<&NaiveTime>, in format() argument 723 time: Option<NaiveTime>, 735 pub fn new(date: Option<NaiveDate>, time: Option<NaiveTime>, items: I) -> DelayedFormat<I> { in new() argument 742 time: Option<NaiveTime>, in new_with_offset() argument 763 time: Option<NaiveTime>, in new_with_locale() argument 774 time: Option<NaiveTime>, in new_with_offset_and_locale() argument 857 time: Option<&NaiveTime>, in format_item_localized() argument [all …]
|
D | parsed.rs | 12 use naive::{NaiveDate, NaiveDateTime, NaiveTime}; 529 pub fn to_naive_time(&self) -> ParseResult<NaiveTime> { in to_naive_time() argument 561 NaiveTime::from_hms_nano_opt(hour, minute, second, nano).ok_or(OUT_OF_RANGE) in to_naive_time() 724 use naive::{NaiveDate, NaiveTime, MAX_DATE, MIN_DATE}; 995 let hms = |h, m, s| Ok(NaiveTime::from_hms(h, m, s)); in test_parsed_to_naive_time() 996 let hmsn = |h, m, s, n| Ok(NaiveTime::from_hms_nano(h, m, s, n)); in test_parsed_to_naive_time()
|
/external/rust/crates/chrono/src/ |
D | date.rs | 17 use naive::{self, IsoWeek, NaiveDate, NaiveTime}; 72 pub fn and_time(&self, time: NaiveTime) -> Option<DateTime<Tz>> { in and_time() 92 NaiveTime::from_hms_opt(hour, min, sec).and_then(|time| self.and_time(time)) in and_hms_opt() 118 NaiveTime::from_hms_milli_opt(hour, min, sec, milli).and_then(|time| self.and_time(time)) in and_hms_milli_opt() 144 NaiveTime::from_hms_micro_opt(hour, min, sec, micro).and_then(|time| self.and_time(time)) in and_hms_micro_opt() 170 NaiveTime::from_hms_nano_opt(hour, min, sec, nano).and_then(|time| self.and_time(time)) in and_hms_nano_opt()
|
D | lib.rs | 497 pub use naive::{IsoWeek, NaiveDate, NaiveDateTime, NaiveTime}; 524 pub use {NaiveDate, NaiveDateTime, NaiveTime}; 560 pub use self::time::NaiveTime;
|
D | datetime.rs | 26 use naive::{self, IsoWeek, NaiveDateTime, NaiveTime}; 108 pub fn time(&self) -> NaiveTime { in time() argument 2173 use naive::{NaiveDate, NaiveTime}; 2248 assert_eq!(d.time(), NaiveTime::from_hms(7, 8, 9)); in test_datetime_date_and_time() 2255 assert_eq!(d.time(), NaiveTime::from_hms(3, 2, 1)); in test_datetime_date_and_time() 2262 assert_eq!(d.time(), NaiveTime::from_hms(12, 34, 56)); in test_datetime_date_and_time()
|
/external/rust/crates/chrono/ |
D | CHANGELOG.md | 60 * Added MIN and MAX values for `NaiveTime`, `NaiveDateTime` and `DateTime<Utc>`. 272 `NaiveDate`, `NaiveTime` and `NaiveDateTime`. (#99) 293 `chrono::naive::time::NaiveTime` | `chrono::naive::NaiveTime` 418 - `overflowing_*` → `overflowing_*_signed` in the `NaiveTime` type 564 - `NaiveDateTime +/- Duration` or `NaiveTime +/- Duration` could have gone wrong 671 In the case that `Time` is really required, one can use a simpler `NaiveTime`. 672 `NaiveTime` and `NaiveDate` can be freely combined and splitted,
|
D | README.md | 380 [**`NaiveTime`**](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveTime.html) and 402 Chrono doesn't try to make use of them](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveTime.ht…
|