Convert::NLS_DATE_FORMAT - Convert Oracle NLS_DATE_FORMAT <-> strftime Format Strings


Convert-NLS_DATE_FORMAT documentation  | view source Contained in the Convert-NLS_DATE_FORMAT distribution.

Index


NAME

Top

Convert::NLS_DATE_FORMAT - Convert Oracle NLS_DATE_FORMAT <-> strftime Format Strings

SYNOPSIS

Top

  use Convert::NLS_DATE_FORMAT qw(oracle2posix posix2oracle);
  my $strptime = oracle2posix($NLS_DATE_FORMAT);
  $NLS_DATE_FORMAT = posix2oracle($strftime);

DESCRIPTION

Top

Convert Oracle's NLS_DATE_FORMAT string into a strptime format string, or the reverse.

Functions

oracle2posix

Takes an Oracle NLS_DATE_FORMAT string and converts it into formatting string compatible with strftime or strptime.

  my $format = oracle2posix('YYYY-MM-DD HH24:MI:SS'); # '%Y-%m-%d %H:%M:%S'

posix2oracle

Takes a strftime or strptime formatting string and converts it into an Oracle NLS_DATE_FORMAT string. It is possible to create strings which Oracle will not accept as valid NLS_DATE_FORMAT strings.

  my $format = posix2oracle('%Y-%m-%d %H:%M:%S'); # 'YYYY-MM-DD HH24:MI:SS'

EXPORT

None by default. oracle2posix and posix2oracle when asked.

SEE ALSO

Top

DateTime::Format::Oracle.

AUTHOR

Top

Nathan Gray, <kolibrie@cpan.org>

COPYRIGHT AND LICENSE

Top


Convert-NLS_DATE_FORMAT documentation  | view source Contained in the Convert-NLS_DATE_FORMAT distribution.