Once you've split the date and time into bits, you can pass the various parts into timelocal to get the number of seconds since the epoch for each start and end time. Subracting start time from end time will give you the nubmer of seconds that you spent online.
Note: When using timelocal don't forget that it requires values in the same form that locatime produces, i.e. year is years since 1900 and month is zero-based.
--In reply to Re: parsing
by davorg
in thread parsing
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |