function f($d) { printf("%s\n", $d); $d = AnewtDateTime::parse($d); printf("%s\n", AnewtDateTime::iso8601($d)); printf("%s\n", AnewtDateTime::iso8601_week($d)); printf("%s\n", AnewtDateTime::iso8601_week_day($d)); printf("%s\n", AnewtDateTime::iso8601_day_of_year($d)); printf("\n"); }
/** * Get the current date and time. * * \return * AnewtDateTimeAtom representing the current date. */ static function now() { return AnewtDateTime::parse(time()); }