Home
last modified time | relevance | path

Searched refs:NaiveDateTime (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddatetime.rs32 pub const MIN_DATETIME: NaiveDateTime = NaiveDateTime { date: MIN_DATE, time: MIN_TIME };
34 pub const MAX_DATETIME: NaiveDateTime = NaiveDateTime { date: MAX_DATE, time: MAX_TIME };
62 pub struct NaiveDateTime { struct
67 impl NaiveDateTime { argument
85 pub fn new(date: NaiveDate, time: NaiveTime) -> NaiveDateTime { in new() argument
86 NaiveDateTime { date: date, time: time } in new()
115 pub fn from_timestamp(secs: i64, nsecs: u32) -> NaiveDateTime { in from_timestamp() argument
116 let datetime = NaiveDateTime::from_timestamp_opt(secs, nsecs); in from_timestamp()
146 pub fn from_timestamp_opt(secs: i64, nsecs: u32) -> Option<NaiveDateTime> { in from_timestamp_opt() argument
154 (Some(date), Some(time)) => Some(NaiveDateTime { date: date, time: time }), in from_timestamp_opt()
[all …]
Ddate.rs18 use naive::{IsoWeek, NaiveDateTime, NaiveTime};
544 pub fn and_time(&self, time: NaiveTime) -> NaiveDateTime { in and_time() argument
545 NaiveDateTime::new(*self, time) in and_time()
568 pub fn and_hms(&self, hour: u32, min: u32, sec: u32) -> NaiveDateTime { in and_hms() argument
591 pub fn and_hms_opt(&self, hour: u32, min: u32, sec: u32) -> Option<NaiveDateTime> { in and_hms_opt() argument
616 pub fn and_hms_milli(&self, hour: u32, min: u32, sec: u32, milli: u32) -> NaiveDateTime { in and_hms_milli() argument
647 ) -> Option<NaiveDateTime> { in and_hms_milli_opt() argument
672 pub fn and_hms_micro(&self, hour: u32, min: u32, sec: u32, micro: u32) -> NaiveDateTime { in and_hms_micro() argument
703 ) -> Option<NaiveDateTime> { in and_hms_micro_opt() argument
728 pub fn and_hms_nano(&self, hour: u32, min: u32, sec: u32, nano: u32) -> NaiveDateTime { in and_hms_nano() argument
[all …]
/external/rust/crates/chrono/src/offset/
Dfixed.rs12 use naive::{NaiveDate, NaiveDateTime, NaiveTime};
111 fn offset_from_local_datetime(&self, _local: &NaiveDateTime) -> LocalResult<FixedOffset> { in offset_from_local_datetime()
118 fn offset_from_utc_datetime(&self, _utc: &NaiveDateTime) -> FixedOffset { in offset_from_utc_datetime()
182 impl Add<FixedOffset> for NaiveDateTime { implementation
183 type Output = NaiveDateTime;
186 fn add(self, rhs: FixedOffset) -> NaiveDateTime { in add() argument
191 impl Sub<FixedOffset> for NaiveDateTime { implementation
192 type Output = NaiveDateTime;
195 fn sub(self, rhs: FixedOffset) -> NaiveDateTime { in sub() argument
Dlocal.rs13 use naive::{NaiveDate, NaiveDateTime};
52 fn datetime_to_timespec(d: &NaiveDateTime, local: bool) -> sys::Timespec { in datetime_to_timespec() argument
129 fn offset_from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<FixedOffset> { in offset_from_local_datetime()
137 fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> FixedOffset { in offset_from_utc_datetime()
151 fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Local>> { in from_local_datetime()
160 fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Local>> { in from_local_datetime()
177 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Local> { in from_utc_datetime()
184 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Local> { in from_utc_datetime()
Dutc.rs9 use naive::{NaiveDate, NaiveDateTime};
50 let naive = NaiveDateTime::from_timestamp(now.as_secs() as i64, now.subsec_nanos() as u32); in now()
72 fn offset_from_local_datetime(&self, _local: &NaiveDateTime) -> LocalResult<Utc> { in offset_from_local_datetime()
79 fn offset_from_utc_datetime(&self, _utc: &NaiveDateTime) -> Utc { in offset_from_utc_datetime()
Dmod.rs24 use naive::{NaiveDate, NaiveDateTime, NaiveTime};
335 match NaiveDateTime::from_timestamp_opt(secs, nsecs) { in timestamp_opt()
429 fn offset_from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<Self::Offset>; in offset_from_local_datetime()
440 fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Self>> { in from_local_datetime()
449 fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset; in offset_from_utc_datetime()
459 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self> { in from_utc_datetime()
/external/rust/crates/rusqlite/src/types/
Dchrono.rs5 use chrono::{DateTime, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
57 impl ToSql for NaiveDateTime { implementation
67 impl FromSql for NaiveDateTime { implementation
76 match NaiveDateTime::parse_from_str(s, fmt) { in column_result()
117 NaiveDateTime::column_result(value).map(|dt| Utc.from_utc_datetime(&dt)) in column_result()
132 use chrono::{DateTime, Duration, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc};
180 let dt = NaiveDateTime::new(date, time); in test_naive_date_time()
189 let v: NaiveDateTime = db in test_naive_date_time()
196 let hms: NaiveDateTime = db in test_naive_date_time()
207 let dt = NaiveDateTime::new(date, time); in test_date_time_utc()
[all …]
/external/rust/crates/chrono/benches/
Dserde.rs6 use chrono::NaiveDateTime;
10 let dt: NaiveDateTime = "2000-01-01T00:00:00".parse().unwrap(); in bench_ser_naivedatetime_string()
20 let dt: NaiveDateTime = "2000-01-01T00:00:00".parse().unwrap(); in bench_ser_naivedatetime_writer()
/external/rust/crates/chrono/
DCHANGELOG.md60 * Added MIN and MAX values for `NaiveTime`, `NaiveDateTime` and `DateTime<Utc>`.
219 * Added methods to DateTime/NaiveDateTime to present the stored value as a number
272 `NaiveDate`, `NaiveTime` and `NaiveDateTime`. (#99)
297 `chrono::naive::datetime::NaiveDateTime` | `chrono::naive::NaiveDateTime`
313 - `NaiveDateTime` and `DateTime` can now be deserialized from an integral UNIX timestamp. (#125)
322 serialize `NaiveDateTime` and `DateTime` values into an integral UNIX timestamp.
416 - `checked_*` → `checked_*_signed` in `Date`, `DateTime`, `NaiveDate` and `NaiveDateTime` types
438 - `NaiveDateTime::from_num_seconds_from_unix_epoch` (→ `NaiveDateTime::from_timestamp`)
439 - `NaiveDateTime::from_num_seconds_from_unix_epoch_opt` (→ `NaiveDateTime::from_timestamp_opt`)
440 - `NaiveDateTime::num_seconds_unix_epoch` (→ `NaiveDateTime::timestamp`)
[all …]
DREADME.md381 [**`NaiveDateTime`**](https://docs.rs/chrono/0.4/chrono/naive/struct.NaiveDateTime.html) respective…
405 Consider using `NaiveDateTime` with the implicit TAI (International Atomic Time) scale
/external/rust/crates/plotters/src/coord/ranged1d/types/
Ddatetime.rs2 use chrono::{Date, DateTime, Datelike, Duration, NaiveDate, NaiveDateTime, TimeZone, Timelike};
128 impl TimeValue for NaiveDateTime { implementation
140 fn earliest_after_date(date: NaiveDate) -> NaiveDateTime { in earliest_after_date() argument
144 fn subtract(&self, other: &NaiveDateTime) -> Duration { in subtract()
594 impl From<Range<NaiveDateTime>> for RangedDateTime<NaiveDateTime> {
595 fn from(range: Range<NaiveDateTime>) -> Self { in from()
/external/rust/crates/chrono/src/
Ddatetime.rs26 use naive::{self, IsoWeek, NaiveDateTime, NaiveTime};
71 datetime: NaiveDateTime,
95 pub fn from_utc(datetime: NaiveDateTime, offset: Tz::Offset) -> DateTime<Tz> { in from_utc() argument
245 pub fn naive_utc(&self) -> NaiveDateTime { in naive_utc() argument
251 pub fn naive_local(&self) -> NaiveDateTime { in naive_local() argument
328 F: FnMut(NaiveDateTime) -> Option<NaiveDateTime>, in map_local() argument
808 let naive = NaiveDateTime::from_timestamp(secs as i64, nanos as u32); in from()
Dlib.rs497 pub use naive::{IsoWeek, NaiveDate, NaiveDateTime, NaiveTime};
524 pub use {NaiveDate, NaiveDateTime, NaiveTime};
558 pub use self::datetime::{NaiveDateTime, MAX_DATETIME, MIN_DATETIME};
/external/rust/crates/plotters/
DRELEASE-NOTES.md75 * `chrono::NaiveDate` and `chrono::NaiveDateTime` are now supported
/external/rust/crates/chrono/src/format/
Dparsed.rs12 use naive::{NaiveDate, NaiveDateTime, NaiveTime};
571 pub fn to_naive_datetime_with_offset(&self, offset: i32) -> ParseResult<NaiveDateTime> { in to_naive_datetime_with_offset() argument
604 let datetime = NaiveDateTime::from_timestamp_opt(ts, 0); in to_naive_datetime_with_offset()
681 let dt = NaiveDateTime::from_timestamp_opt(timestamp, nanosecond); in to_datetime_with_timezone()