#!/usr/bin/perl -w #====================================================================== # FILE: Time.pm # CREATOR: eric # # (C) COPYRIGHT 2000, Eric Busboom # # This library is free software; you can redistribute it and/or modify # it under the terms of either: # # The LGPL as published by the Free Software Foundation, version # 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html # # Or: # # The Mozilla Public License Version 2.0. You may obtain a copy of # the License at https://www.mozilla.org/MPL/ #====================================================================== =pod =head1 NAME Net::ICal::Time -- represent a time and date =head1 SYNOPSIS $t = new Net::ICal::Time("19970101T120000Z"); $t = new Net::ICal::Time("19970101T120000","America/Los_Angeles"); $t = new Net::ICal::Time(time(),"America/Los_Angeles"); $t2 = $t->add(Net::Ical::Duration("1D")); $duration = $t->subtract(Net::ICal::Time("19970101T110000Z")) # Add 5 minutes $t->min($t->min()+5); # Add 5 minutes $t->sec($t->sec()+300); # Compare if($t->compare($t2) > 0) {} =head1 DESCRIPTION I