No::Worries::Date(3)
β¨ NAME β¨
okay so bestie, this is the manual page for No::Worries::Date(3) β literally date handling without worries π
. no cap, thatβs the whole vibe.
π SYNOPSIS π
use No::Worries::Date qw(date_parse date_stamp date_string);
$string = date_stamp();
# e.g. 2012/04/12-11:01:42
$string = date_string(time());
# e.g. 2012-04-12T09:01:42Z
$string = date_string(Time::HiRes::time());
# e.g. 2012-04-12T09:01:42.48602Z
$time = date_parse("Sun, 06 Nov 1994 08:49:37 GMT");
π DESCRIPTION π
This module eases date handling by providing convenient wrappers around standard date functions. All the functions die() on error. π periodt.
The strings and times may include fractional seconds like in the example above β yes, down to the little .48602 moment, bestie π«Ά.
date_parse() can accept many more formats than simply what date_stamp() and date_string() return. so like, itβs flexible fr fr πΈ.
π FUNCTIONS π
This module provides the following functions (none of them being exported by default):
date_parse(STRING)
parse the given string and return the corresponding numerical time (i.e. the number of non-leap seconds since the epoch) or an error; HTTP::Date's str2time() is used for the parsing β¨
date_stamp([TIME])
convert the given numerical time (or the current time if not given) to a human friendly, compact, local time string π
date_string([TIME])
convert the given numerical time (or the current time if not given) to a standard, ISO 8601 compliant, UTC based string π
π¦ SEE ALSO π¦
HTTP::DateNo::Worries
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2012-2019
π cute sign-off bestie: this page is fromperl v5.32.1, dated2021-10-18β mwah! ππ«Ά
π¦ where this page comes from
- epel 9: perl-No-Worries 1.7-1.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms