1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ISO 8601 date functions

Discussion in 'Open Forum' started by K_Meinhard, Sep 2, 2008.

  1. K_Meinhard

    Joined:
    May 20, 2008
    Messages:
    309
    Likes Received:
    0
    Thanks to Luchezar Georgiev 4DOS has now internal variables and
    functions for ISO 8601, which should make things easier for European
    users:

    %_ISODOWI (Monday=1 , Tuesday=2 ...)
    %_ISOWDATE (Current ISO 8601 week date (yyyy-Www-d)
    %_ISOWEEK (Week of the year pursuant to ISO 8601)

    @ISODOWI[date] Numeric day of the week (Mon = 1, etc.)
    @ISOWEEK[date] Week of the year pursuant to ISO 8601

    @MAKEDATE, @AGEDATE have a new optional second argument (5):
    5 - ISO 8601 international format (yyyy-Www-d) week date

    @MAKEAGE now understands the new formats.

    Note that for 4NT / TCC users this functionality is a small part of the
    FEDUTIL plugin by Federico C. Romano (who got the relevant ISO wrong:
    its 8601, not 9601).

    Mit freundlichem Gruß,

    Klaus Meinhard
     
  2. Rex Clark

    Joined:
    May 30, 2008
    Messages:
    57
    Likes Received:
    0
    Hi Klaus..
    Scripting in 4dos is a lot harder than 4NT/TC
    Less code is required to do the same job I don't really understand why one would
    still use it.

    ----- Original Message -----

    | Thanks to Luchezar Georgiev 4DOS has now internal variables and
    | functions for ISO 8601, which should make things easier for European
    | users:
    |
    | %_ISODOWI (Monday=1 , Tuesday=2 ...)
    | %_ISOWDATE (Current ISO 8601 week date (yyyy-Www-d)
    | %_ISOWEEK (Week of the year pursuant to ISO 8601)
    |
    | @ISODOWI[date] Numeric day of the week (Mon = 1, etc.)
    | @ISOWEEK[date] Week of the year pursuant to ISO 8601
    |
    | @MAKEDATE, @AGEDATE have a new optional second argument (5):
    | 5 - ISO 8601 international format (yyyy-Www-d) week date
    |
    | @MAKEAGE now understands the new formats.
    |
    | Note that for 4NT / TCC users this functionality is a small part of the
    | FEDUTIL plugin by Federico C. Romano (who got the relevant ISO wrong:
    | its 8601, not 9601).
    |
    | Mit freundlichem Gruß,
    |
    | Klaus Meinhard
     
  3. haskell

    Joined:
    Jun 6, 2008
    Messages:
    15
    Likes Received:
    0
    Hi Rex,

    Well, I have an idea.
    How well does 4NT run on DOS?

    --
    haskell
     
  4. Rex Clark

    Joined:
    May 30, 2008
    Messages:
    57
    Likes Received:
    0
    Good point. foot in mouth
    Apologise

    ----- Original Message -----
    | Hi Rex,
    |
    |
    | ---Quote---
    | Scripting in 4dos is a lot harder than 4NT/TC
    | Less code is required to do the same job I don't really understand why one
    would still use it.
    | ---End Quote---
    | Well, I have an idea.
    | How well does 4NT run on DOS?
    |
    | --
    | haskell
    |
     
  5. K_Meinhard

    Joined:
    May 20, 2008
    Messages:
    309
    Likes Received:
    0
    Rex Clark wrote:


    Its free. Does TCC/LE support plugins?

    * Klaus Meinhard *
    4DOS Info - Info for DOS
    www.4dos.info
     
  6. K_Meinhard

    Joined:
    May 20, 2008
    Messages:
    309
    Likes Received:
    0
    K_Meinhard wrote:


    I just see that the TCC help displays the same error for _ISODATE.

    * Klaus Meinhard *
    4DOS Info - Info for DOS
    www.4dos.info
     
  7. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    K_Meinhard wrote:
    | Does TCC/LE support plugins?

    Yes.
    --
    Steve
     

Share This Page