On 8/1/07, jeevs <[EMAIL PROTECTED]> wrote:
> Before reading the above comments I used the localtime function of
> Time::Local to convert the dates into epochs and then comparing
> numerically.
>
> But thanks as i was not knowing that the strings i.e 2007-12-01 and
> 2007-12-02 can be compared using the string operators for dates. Can
> anyone point me to how strings are compared. To be more ellaborate i
> can understand if strings like 2007-12-01 is less than 2007-12-02 but
> how can a string 2007-11-01 will be less than 2007-12-01 .
>

Strings compare character by character, from left to right, so

2 = 2
0 = 0
7 = 7
- = -
1 = 1
1 < 2

HTH,

-- jay
--------------------------------------------------
This email and attachment(s): [  ] blogable; [ x ] ask first; [  ]
private and confidential

daggerquill [at] gmail [dot] com
http://www.tuaw.com  http://www.downloadsquad.com  http://www.engatiki.org

values of β will give rise to dom!

Reply via email to