File: parse_date.pl

package info (click to toggle)
libdatetime-format-flexible-perl 0.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 576 kB
  • sloc: perl: 2,656; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl

use strict;
use warnings;

use DateTime::Format::Flexible;
my $dt = DateTime::Format::Flexible->parse_datetime( 'January 8, 1999' );

# $dt = a DateTime object set at 1999-01-08T00:00:00