RE: getting a time diff from strings
- From: tjohnson@xxxxxxxxxxxxxxxxxxx (Timothy Johnson)
- Date: Wed, 28 Dec 2005 18:22:08 -0800
Check out the Time::Local module.
-----Original Message-----
From: Robert [mailto:sigzero@xxxxxxxxx]
Sent: Wednesday, December 28, 2005 6:19 PM
To: beginners@xxxxxxxx
Subject: getting a time diff from strings
I have a log that I am parsing and I can get the login and logout time
string parsed out. It looks like this:
13:50:01 # this is the when the user logged in
14:14:35 # this is when the user logged out
I need to get how much time that is but I am not sure how to go about it
since it is a string (that I assume I have to convert to "real" time to
do
the math with).
Robert
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
<http://learn.perl.org/> <http://learn.perl.org/first-response>
.
- Prev by Date: getting a time diff from strings
- Next by Date: Re: Each char / letter --> array from string value
- Previous by thread: Re: getting a time diff from strings
- Next by thread: strange problem with STDIN- need help
- Index(es):
Relevant Pages
|