#!/usr/bin/perl
# date-tag - print a date-tag in the format YYYY-MM-DD-hhmmss
# 2020 Vlado Keselj vlado@dnlp.ca http://vlado.ca

use POSIX;
print strftime("%Y-%m-%d-%H%M%S\n", localtime(time));

exit 0;
__END__ # Documentation

=head1 NAME

date-tag - print a date-tag in the format C<YYYY-MM-DD-hhmmss>

=head1 SYNOPSIS

 $ date-tag
 2020-05-13-154542

=head1 DESCRIPTION

A simple command that prints one line of with the current date-time tag in
the format C<YYYY-MM-DD-hhmmss>.

=head1 AUTHOR

Vlado Keselj vlado@dnlp.ca http://vlado.ca

=head1 LICENSE

Perl License (perl)

=head1 SCRIPT CATEGORIES

CPAN
Unix/System_administration

=head1 README

date-tag - print a date-tag in the format C<YYYY-MM-DD-hhmmss>

=cut