Date Manipulation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crab68
    New Member
    • Feb 2008
    • 1

    Date Manipulation

    Hi,

    I have a datetime field eg (25/01/2008 02:19:35). What I need to do is add 8 hours to this datetime field to give me a new value of (25/01/2008 10:19:35). Can this be done in Perl? Is there any sample script out there.

    Thanks in advance.

    Cheers.
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    I would use the Time::Local module. http://perldoc.perl.org/Time/Local.html

    there are same Date modules on CPAN you can use for this too, but I think Time::Local would be easiest since it comes with perl.

    Have you tried to write any code yet?

    Comment

    • WinblowsME
      New Member
      • Jan 2008
      • 58

      #3

      Comment

      Working...