File: now.pl

package info (click to toggle)
libdatetime-format-w3cdtf-perl 0.08-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 212 kB
  • sloc: perl: 1,500; makefile: 2
file content (9 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl

use strict;
use warnings;
use DateTime::Format::W3CDTF;

my $dt		= DateTime->now;
my $format	= DateTime::Format::W3CDTF->new;
print $format->format_datetime($dt) . "\n";