update Sybase docs
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / Sybase / DateTime.pm
CommitLineData
5608593e 1package # hide from PAUSE
2 DBIx::Class::Storage::DBI::Sybase::DateTime;
3
4use strict;
5use warnings;
6use DateTime::Format::Strptime;
7
8my $inflate_format = DateTime::Format::Strptime->new(
7e8cecc1 9 pattern => '%Y-%m-%dT%H:%M:%S.%3NZ'
5608593e 10);
11
12my $deflate_format = DateTime::Format::Strptime->new(
7e8cecc1 13 pattern => '%m/%d/%Y %H:%M:%S.%3N'
5608593e 14);
15
16sub parse_datetime { shift; $inflate_format->parse_datetime(@_) }
17
18sub format_datetime { shift; $deflate_format->format_datetime(@_) }
19
201;
7e8cecc1 21
22=head1 NAME
23
24DBIx::Class::Storage::DBI::Sybase::DateTime - DateTime inflation/deflation
25support for Sybase in L<DBIx::Class>.
26
27=head1 DESCRIPTION
28
29This needs to become L<DateTime::Format::Sybase>.
30
31=head1 AUTHORS
32
33See L<DBIx::Class/CONTRIBUTORS>.
34
35=head1 LICENSE
36
37You may distribute this code under the same terms as Perl itself.
38
39=cut
40# vim:sts=2 sw=2: