[lug] Date Conversion Routine
David Morris
boru at frii.com
Mon Jun 19 16:07:33 MDT 2000
I took a look at the Date::Calc module as mentioned below, but unless
I am missing something, it has no routines to convert the day of the
year to a month and day...I also found the gnu shell utilities which
has a date routine that can display day of year given a month and day,
but again it cannot go in the reverse direction as there is no
mechanism for passing a day of year date string into the program.
So...any other suggestions out there? Alternately, I know there is an
easy algorithm for each direction in the conversion...anyone know what
it is, or know where I can find it?
Thanks,
David
On Mon, 19 Jun 2000, Kyle Moore wrote:
> I have to agree. While I haven't had to do specifically what you are
> trying to do here, Date::Calc has made life so much easier when having
> to work with dates. And it being a perl module is an added bonus.
>
> rm at mamma.varadinet.de wrote:
> >
> > May i point you to the Date::Calc module for Perl ?
> > (http://www.cpan.org/modules/by-module/Date/Date-Calc-4.3.tar.gz)
> >
> > This is a perl module that can do quite some date juggling. It's
> > actually a C-library with perl wrapper code arround it. The lib
> > can be used 'standalone', so if you dread perl you could write your
> > own little C program for the conversion (or maybe even a bash
> > plugin ;-)
> >
> > Ralf
> >
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
> --
>
> ----
> Kyle Moore
> UNIX Systems Administrator
> ---------------------------------------
> Trust Company of America / Gemisys
> 7103 South Revere Parkway
> Englewood, CO 80112
> ---------------------------------------
> Email: kmoore at trustamerica.com
> Voice: 303-705-6212
> Pager: 303-656-1131
> Fax: 303-705-6171
> Web Site: http://www.trustamerica.com
> ---------------------------------------
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>
More information about the LUG
mailing list