Branch: Tag:

2001-07-18

2001-07-18 09:34:57 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

adding format_iso_short: "20010718T11:34:10"

Rev: lib/modules/Calendar.pmod/Time.pmod:1.18
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.40

375:   //! time "2000-06-02 00:00:00"   //! time_short "20000602 00:00:00"   //! time_xshort "000602 00:00:00" + //! iso_short "2000-06-02T00:00:00"   //! mtime "2000-06-02 00:00"   //! xtime "2000-06-02 00:00:00.000000"   //! tod "00:00:00"
503:    return format_ymd_short()+" 00:00:00";    }    +  string format_iso_short() +  { +  return format_ymd_short()+"T00:00:00"; +  } +     string format_time_xshort()    {    return format_ymd_xshort()+" 00:00:00";
2173:    res=res->add(u1-u0,Second);    else    res=res->autopromote(); +  +  if (!force) +  { +  if (res->hour_no()!=what->hour_no()) +  error("place: no such time of " +  "day (DST shift)\n",what,this_object());    } -  +  }    else    res=res->autopromote();