Skip to main content

now_after

Function now_after 

Source
pub fn now_after(previous: Option<&str>) -> Result<String>
Expand description

The current time in the database format, made later than previous: when previous is not before now (a clock that went back, or two writes within one millisecond), one millisecond after previous.

Fails with the parser’s message when previous is not a date (Kind::Database, wrapping the Kind::DateMalformedString error).

PHP: DateTime::nowAfter($previous).