Skip to content

Add chrono::TimeDelta to mongodb::bson::DateTime #489

@ChanManChan

Description

@ChanManChan

Is there a better way to add chrono::Duration to bson::DateTime without converting to chrono::DateTime?

currently I'm doing this
expires_at: DateTime::from_millis(now.timestamp_millis() + duration.num_milliseconds()),

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions