When you want to use #[derive(Default)]
to a struct, you may want the current time to be the default for DateTime
.
For this purpose, we have provided NewType that overrides the default value.
DateTime with current time as default
```rust use chrono::{Local, TimeZone}; use datetime_default::DateTimeDefaultNow;
asserteq!(
DateTimeDefaultNow::
DateTime with UNIX epoch as default
```rust use chrono::{Utc, TimeZone}; use datetime_default::DateTimeDefaultUnix;
asserteq!(
DateTimeDefaultUnix::
```rust use chrono::{DateTime, FixedOffset, TimeZone}; use datetime_default::DateTimeDefaultUnix;
asserteq!(
DateTimeDefaultUnix::
License: MIT