on Tue, Dec 18, 2001 at 11:47:57AM +1100, George Vieira <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a way to subtract the number of days remaining from a date so I can > report back "125 days remaining" etc.. under linux/perl? > > I want to subtract it from a date which will be a special event etc.. > Is there a date to interger conversion or something?
This can be done using the C routines that are found in time.h. I found a very useful shell impleamentation of the C routines called mktime, you may have trouble finding this. This gives you a mktime command that you can run and you can do excactly what you want. BB -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
