NAME
Backup::Omni::Utils - Utility functions for Backup::Omni
SYNOPSIS
use Backup::Omni::Class
version => '0.01',
base => 'Backup::Omni::Base',
utils => 'db2dt dt2db'
;
... or ...
use Backup::Omni::Utils 'dt2db';
printf("%s\n", dt2db($dt));
DESCRIPTION
This module provides utility routines that can by loaded into your current namespace.
METHODS
db2dt($string)
This routine will take a date format of YYYY-MM-DD HH:MM:SS and convert it into a DateTime object.
dt2db($datetime)
This routine will take a DateTime object and convert it into the following string: YYYY-MM-DD HH:MM:SS
omni2dt($string)
This routine will take a date format of WWW DD MMM YYYY HH:MM:SS PM PST and convert it into a DateTime object.
convert_id($session)
Convert a temporary session id into the permanent one.
abort_id($session)
Abort a running session.
trim($string)
Trim the whitespace from the beginning and end of a string.
ltrim($string)
Trim the whitespace from the end of a string.
rtrim($string)
Trim the whitespace from the beginning of a string.
SEE ALSO
Badger::Utils
Backup::Omni::Base
Backup::Omni::Class
Backup::Omni::Constants
Backup::Omni::Exception
Backup::Omni::Restore::Filesystem::Single
Backup::Omni::Session::Filesystem
Backup::Omni::Session::Messages
Backup::Omni::Session::Monitor
Backup::Omni::Session::Results
AUTHOR
Kevin L. Esteb, <kesteb@wsipc.org>
COPYRIGHT AND LICENSE
Copyright (C) 2013 by WSIPC
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.