Link to home
Start Free TrialLog in
Avatar of thomaszhwang
thomaszhwangFlag for United States of America

asked on

How can I do DATEADD in Perl?

I have a datetime object in Perl from MySQL database.  I want to Add x hours on this time and remove the minute and second part.  How can I do this in Perl?  Thanks.
SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thomaszhwang

ASKER

Thanks.

Also how can I get the Minutes and Seconds of a datetime object?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.