File: parse_date.pl

package info (click to toggle)
libdatetime-format-flexible-perl 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 544 kB
  • ctags: 64
  • sloc: perl: 2,105; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (4)
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