# Module of TWiki Collaboration Platform, http://TWiki.org/ # # Copyright (C) 2005 Mario Frasca, mfrasca@zonnet.nl # # For licensing info read license.txt file in the TWiki root. # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details, published at # http://www.gnu.org/copyleft/gpl.html =pod ---+ package TWiki::TimeInterval Time interval handling functions. =cut package TWiki::TimeInterval; use TWiki::Time; use TWiki; =pod ---++ StaticMethod parseInterval( $szInterval ) -> [$iSecs, $iSecs] Convert string representing a time interval to a pair of integers representing the amount of seconds since epoch for the start and end extremes of the time interval. * =$szInterval= - time interval string A TimeInterval is of the form (BNF): *