date(), date_and_time(), doty(), doty2date(), time_stamp_nexus()

date(), date_and_time(), time()
$ret = Spectra::date_and_time();

doty()
Returns the day-of-the-year ([0,365] or [0,366]):
$ret = Spectra::doty();

doty2date()
Converts a real number [0,365[ or [0,366[ to a list containing the data. The function uses the current date to decide whether it is a leap year or not:

my $doty = Spectra::doty();
my ( $mday, $mon, $year, $hour, $min, $sec) = Spectra::doty2date( $doty);

time_stamp_nexus)
$ret = Spectra::time_stamp_nexus();