Rust

from_format

Module

timelib_parse_from_format with PHP's default format map: the parser behind DateTime::createFromFormat() and date_parse_from_format().

Contents

use php_std::datetime::from_format::parse_from_format;
Rust
pub fn parse_from_format(format: &[u8], string: &[u8]) -> (Time, Messages)

timelib_parse_from_format.