[lug] Date Conversion Routine

Arthur Hostmark ahostma at uswest.com
Mon Jun 19 16:13:42 MDT 2000


The perl module I have used most for date calc and reformating is
Date::Manip.  Maybe that would work for you.

David Morris wrote:
> 
> 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
> >
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 
 -Plagiarized from the Net-
 I love deadlines.  I especially love the 
 swooshing sound they make as they go flying by.
   -- Dilbert
 =-=-=-=-=-=-=< Insert Standard Disclaimer here >=-=-=-=-=
 Art Hostmark ahostma at uswest.com |  US West Communications




More information about the LUG mailing list