File: 12_mysql.t

package info (click to toggle)
libmoosex-types-iso8601-perl 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 300 kB
  • ctags: 1
  • sloc: perl: 494; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;
use Test::More;

use Test::Requires 'MooseX::Types::DateTime::MySQL';

use MooseX::Types::ISO8601 qw/
    ISO8601DateStr
    ISO8601TimeStr
    ISO8601DateTimeStr
/;

my $mysql_dt = '2010-08-16 09:26:25';

is to_ISO8601DateStr($mysql_dt), '2010-08-16';
is to_ISO8601DateTimeStr($mysql_dt), '2010-08-16T09:26:25Z';

done_testing;