Rust

format

Module

date_format() of php_date.c: the formatter behind date(), gmdate() and DateTimeInterface::format().

Contents

use php_std::datetime::format::date_format;
Rust
pub fn date_format(format: &[u8], t: &Time, localtime: bool) -> Vec<u8>

date_format(format, t, localtime): PHP's output, byte for byte.