On Thu, 28 Dec 2000 17:26:03 +0530 (IST), sreangsu acharyya said:
Look for module Date::Manip
It comprehensive. You can use required code from it.
> 
>  Hi,
>    is there anyway by which one can compare 2 date strings as returned
>  by
>  "date" in bash.
>  
>    I can ofcourse parse it with something like 
>  
>  "^(???) (???) ([1-9]*) (([1-9]*:)*)([1-9]*) .* [1-9]*$" 
>  Thu Dec 28 17:19:35 IST 2000 
>  
>  and then compare the year month and day. But I am looking for a
>  simpler
>  solution ( i.e without parsing )
>  
>  thanks in advance
>  sreangsu 
>  
>  
>  p.s.
>   No Perl please ;)
>  -- 
>  
>  
>  
>  
>  ----------------------------------------------
>  Find out more about this and other Linux India 
>  mailing lists at http://lists.linux-india.org/
>  
>  

-- 
Deepak Joglekar

[EMAIL PROTECTED]

/usr/games/fortune -s


----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr

Reply via email to