Re: Compare Dates
amerar@xxxxxxx wrote:
Here is a good one: I need to compare 2 dates, without the year.
Basically I want to know if a specific calendar date falls between two
other dates. Everything is in YYYY-MO-DD, the way Perl wants it.
Just strip the year:
my $day = substr $date, 5;
and do stringwise comparisons.
--
Gunnar Hjalmarsson
Email:
http://www.gunnar.cc/cgi-bin/contact.pl
.
Relevant Pages
- Re: Compare Dates
... Basically I want to know if a specific calendar date falls between two ... Everything is in YYYY-MO-DD, the way Perl wants it. ... say I am looking for a birthday. ... (comp.lang.perl.misc) - Re: PERLs equivalent to an "include file"
... Shelly Brown wrote: ... Right now I have to manually enter the calendar ... HTML code for the calendar. ... wouldn't be Perl. ... (perl.beginners) - Automatically extracting MS Outlook 2007 calendar entries with perl (on WIndows)
... I would like to extract outlook calendar data without having to have outlook running permanently or without having to 'crawl' through the menu for exporting the calendar data to a format, that I can easily use in my own perl ... I have cygwin and its perl installed, but could also install another perl if needed. ... The options would be to extract the calendar information directly out of the file where the information is stored in. ... (comp.lang.perl.misc) - Re: DST patches to Java but not to Solaris, expect problems?
... Obviously not as concise as the Perl but, well, Java. ... Calendar c = Calendar.getInstance; ... private static void printIt ... (comp.unix.solaris) - Re: Filk.com online store down -- June 21 2006
... Rich Brown, what was your solution to your PHP bug? ... The new calendar is written in Perl. ... (rec.music.filk) |
|