Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Number::Compare::Date
Like Number::Compare, but for epoch seconds

Number::Compare::Date - Like Number::Compare, but for epoch seconds


NAME

Number::Compare::Date - Like Number::Compare, but for epoch seconds


SYNOPSIS


  use Number::Compare::Date;

  my $y2k = Number::Compare::Date->new(">=2000-01-01");

  if ($y2k->(time))

    { print "Run for the hills, the y2k bug's gonna eat you " }


DESCRIPTION

A simple extension to Number::Compare that allows you to compare dates against numbers (which should be epoch seconds.) The value that is compared can either be epoch seconds:


  my $perl583 = Number::Compare::Date->new("<1072915199");

Or it can be anything Date::Parse can recognise:


  my $perl583 = Number::Compare->new('<Wed, 31 Dec 2003 23:59:59');

If you don't use a comparison operator (<, <=, >= or >), then the module will check if the date is equal.

See the Date::Parse manpage for more formats.


AUTHOR

Written by Mark Fowler <mark@twoshortplanks.com>

Copyright Profero 2003. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


BUGS

Doesn't cope with anything outside the epoch range on your machine. Isn't DateTime compatible.

Bugs should be reported to the open source development team at Profero via the CPAN RT system.

http://rt.cpan.org/NoAuth/ReportBug.html.


SEE ALSO

the Date::Parse manpage, the Number::Compare manpage

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy