Menu

#3 Support dates and times using native syntax

Version 10.3.0
open
nobody
None
5
2005-09-02
2004-09-08
No

Would it make sense to improve the support for dates in
millscript, to allow the use of the <, = and > operators
with dates? Obviously you would only be able to
compare dates with dates, '<' would mean is LHS before
RHS and '>' would mean LHS is after RHS...

Does this seem logical at all?

Discussion

  • Kevin Rogers

    Kevin Rogers - 2005-04-18

    Logged In: YES
    user_id=934534

    The arithmetic operators don't make sense in relation to dates.
    In would be much better to have functions such as isAfter and
    isBefore.

    A far more useful addition for dates(and times) is to support
    them as native syntax. e.g. so you can just type a date straight
    into your program. The main issue that arises is what is the
    exact syntax and which date/time formats do we allow.

    Initial thoughts(with Steve) are along the following lines:

    var mydate = date "1st April 2005";
    var mydate = date 2005_04_01;
    var mydate = [[ 1st April 2005 ]];

    The syntax will be discussed and finalised through
    OpenSpice.

     
  • Kevin Rogers

    Kevin Rogers - 2005-04-18
    • milestone: --> 478128
    • summary: Add improved support for dates(i.e. <,=,> operators) --> Support dates and times using native syntax
     
  • Kevin Rogers

    Kevin Rogers - 2005-09-02
    • milestone: 478128 --> Version 10.3.0
     

Log in to post a comment.