1Convert::NLS_DATE_FORMAUTs(e3r)Contributed Perl DocumentCaotnivoenrt::NLS_DATE_FORMAT(3)
2
3
4

NAME

6       Convert::NLS_DATE_FORMAT - Convert Oracle NLS_DATE_FORMAT <-> strftime
7       Format Strings
8

SYNOPSIS

10         use Convert::NLS_DATE_FORMAT qw(oracle2posix posix2oracle);
11         my $strptime = oracle2posix($NLS_DATE_FORMAT);
12         $NLS_DATE_FORMAT = posix2oracle($strftime);
13

DESCRIPTION

15       Convert Oracle's NLS_DATE_FORMAT string into a strptime format string,
16       or the reverse.
17
18   Functions
19       oracle2posix
20           Takes an Oracle NLS_DATE_FORMAT string and converts it into
21           formatting string compatible with "strftime" or "strptime".
22
23             my $format = oracle2posix('YYYY-MM-DD HH24:MI:SS'); # '%Y-%m-%d %H:%M:%S'
24
25       posix2oracle
26           Takes a "strftime" or "strptime" formatting string and converts it
27           into an Oracle NLS_DATE_FORMAT string. It is possible to create
28           strings which Oracle will not accept as valid NLS_DATE_FORMAT
29           strings.
30
31             my $format = posix2oracle('%Y-%m-%d %H:%M:%S'); # 'YYYY-MM-DD HH24:MI:SS'
32
33   EXPORT
34       None by default. "oracle2posix" and "posix2oracle" when asked.
35

SEE ALSO

37       DateTime::Format::Oracle.
38

AUTHOR

40       Nathan Gray, <kolibrie@cpan.org>
41
43       Copyright (C) 2005, 2006 Nathan Gray
44
45       This library is free software; you can redistribute it and/or modify it
46       under the same terms as Perl itself, either Perl version 5.8.4 or, at
47       your option, any later version of Perl 5 you may have available.
48
49
50
51perl v5.12.0                      2006-11-04       Convert::NLS_DATE_FORMAT(3)
Impressum