Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by Matts (1087) on 2003.02.13 5:31 (#16980) Journal
    Time::Piece has always had a ymd method that does that (and hms).
    • There was something wrong with it; can't remember what. Where "wrong" means "wasn't exactly what we needed." I also needed a constructor from YYMMDD[HH[MM]] timestamps when there was no strptime.

      Are you absolutely certain ymd was always there, from the beginning in Time::Object?

      Hmmm ... does some searching [mpe.mpg.de] ...

      Ah! Oh, yes: ymd gave YYYY/MM/DD in those days, and I really needed no slashes and (for backward compatibility) two digit years. Hmm, still does [cpan.org], but with hyphens now (customizable, presumabl

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • BTW, I actually named my methods yymmdd, yymmddhh, etc. I always wanted to go back and do yyyymmdd, etc.

        --
        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers