
perlwatcher
User
Feb 23, 2011, 5:44 AM
Post #1 of 3
(946 views)
|
Adding time in Perl .
|
Can't Post
|
|
Hi All, I am trying to add time to the existing time ... in terms of seconds. For eg : If the current time is 13:40:47 and I want to add 45 seconds to it . how would I do it .. I can use the grouping in the pattern matching ( like $1 and so on) to get the seconds hours and minutes ...but do we have any other way to the same....Like in the above example if the no of seconds after addition is more than 60 seconds .. I need to add 1 more minute ... so I want some module which does this... I am aware of Date::Manip .. but not sure if it gives me precise time after addition Please, any help would be greatly appreciated. Thanks
|