Skip to content

Nimdate

Gentilhomme edited this page Dec 16, 2016 · 3 revisions

Nimdate

Use case

Use the diff variable to get the difference time in second.

my $nimDate = new perluim::nimdate($_->{timeLast});
$Console->print("Difference from now => ".abs($nimDate->{diff})." seconds");

Variables

Name Type
originalString string
year string
month string
day string
hour string
min string
sec string
diff number
finalFormat string
How to use variables
$Console->print($nimDate->{variableName});

API

parse()

Return nothing

This method is called into the constructor.

Clone this wiki locally