Why haste? :)

I put my own wrapper code in there so I didn't spot or was affected by the bug. Thanks anyway.

Staffan



On Sat, Nov 30, 2013 at 4:20 PM, Chip Davis <chip@aviatrexx.com> wrote:
Actually, it doesn't.

In my haste to include the overlooked wrapping code, the '=3' turned
into '+3', but I had masked off the 'brain-check' interrupt bit and
didn't catch it. :-/

For the record, this code has been copied/pasted from my tested code:

/* DateJ2S - Convert Date from 'yyddd' to 'yyyymmdd' */

   Parse Arg yy =3 ddd .
   Say Date('S',Date('B',19+(yy<=70)yy'0101','S')+ddd-1,'B')
   Exit 0

-Chip-

On 11/30/2013 05:07 Staffan Tylen said:
> Yup, that seems to work, well done!
>
> Staffan
>
>
>
> On Sat, Nov 30, 2013 at 12:33 AM, Chip Davis <chip@aviatrexx.com
> <mailto:chip@aviatrexx.com>> wrote:
>
>     [Sorry, forgot to include the wrapping code]
>
>          Parse Arg yy +3 ddd .
>          Say
>     Substr(Date('S',Date('B',19+(yy<=70)yy'0101','S')+ddd-1,'B'),3)
>
>     -Chip-
>
>     On 11/29/2013 14:53 Mark Miesfeld said:
>      > On Fri, Nov 29, 2013 at 11:17 AM, Staffan Tylen
>      > <staffan.tylen@gmail.com <mailto:staffan.tylen@gmail.com>
>     <mailto:staffan.tylen@gmail.com <mailto:staffan.tylen@gmail.com>>>
>     wrote:
>      >
>      >     I'm playing around with the date() function and am trying to
>      >     convert a date in the format yyddd to yymmdd but I can't find a
>      >     way to handle the yy portion of the date. The "D" option
>     supports
>      >     the ddd portion but the result shows the current year. How
>     can I
>      >     make yy be part of the calculation?
>      >
>      >
>      > Hi Staffan,
>      >
>      > I'm not much help here, dates are too complex for me.  If I can
>     figure
>      > out today's date, I'm about at my limit.
>      >
>      > My first thought though is that the DateTime class may be of
>     more help
>      > than the date() function.
>      >
>      > --
>      > Mark Miesfeld
>      >
>      >
>      >
>     ------------------------------------------------------------------------------
>      > Rapidly troubleshoot problems before they affect your business.
>     Most IT
>      > organizations don't have a clear picture of how application
>     performance
>      > affects their revenue. With AppDynamics, you get 100%
>     visibility into your
>      > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>     AppDynamics Pro!
>      >
>     http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>      >
>      >
>      >
>      > _______________________________________________
>      > Oorexx-users mailing list
>      > Oorexx-users@lists.sourceforge.net
>     <mailto:Oorexx-users@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/oorexx-users
>      >
>
>     ------------------------------------------------------------------------------
>     Rapidly troubleshoot problems before they affect your business.
>     Most IT
>     organizations don't have a clear picture of how application
>     performance
>     affects their revenue. With AppDynamics, you get 100% visibility
>     into your
>     Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>     AppDynamics Pro!
>     http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>     _______________________________________________
>     Oorexx-users mailing list
>     Oorexx-users@lists.sourceforge.net
>     <mailto:Oorexx-users@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users