pub struct DateTime(/* private fields */);Expand description
日期与时间
精度不限,展示形式灵活.
可以表示:
- 年 - 2023
- 年月 - 2023-08
- 年月日 - 2023-08-17
- 年月日时分秒 - 2023-08-17T08:21:45
- 年月日时分秒(毫秒) - 2023-08-17T08:21:45.234
- 年月日时分秒(毫秒)时区 - 2023-08-17T08:21:45.234+08:00
Trait Implementations§
source§impl Convert for DateTime
impl Convert for DateTime
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
source§impl<'de> Deserialize<'de> for DateTime
impl<'de> Deserialize<'de> for DateTime
fn deserialize<D>(deserializer: D) -> Result<Self>where
D: Deserializer<'de>,
source§impl Executor for DateTime
impl Executor for DateTime
fn to_collection(&self, _index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
fn element( &self, _symbol: &String, _index: &Option<usize> ) -> Result<Collection>
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more