Changeset dcc8c8b in tol


Ignore:
Timestamp:
Jun 19, 2009, 10:23:00 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
31f305a
Parents:
4c3ff30
Message:

New system variable Date NowGmt: Today GMT date and time

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1093 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol/btol/date_type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/date_type/dtegra.cpp

    r4c3ff30 rdcc8c8b  
    108108        );
    109109   
    110     BDteToday*  today_ = new BDteToday;
    111     BDteNow*    now_   = new BDteNow;
     110    BDteToday*  today_   = new BDteToday;
     111    BDteNow*    now_     = new BDteNow;
     112    BDteNowGmt* nowGmt_  = new BDteNowGmt;
    112113    OwnGrammar()->PutDefect(unknown_);
    113114}
  • tol/btol/date_type/tol_bdtegra.h

    r4c3ff30 rdcc8c8b  
    7272    "Now",
    7373    BDate::Unknown(),
    74     I2("Today date and time",
    75        "La fecha y la hora de hoy")
     74    I2("Today local date and time",
     75       "La fecha y la hora locales")
    7676  ) { }
    7777 ~BDteNow() {}
    … …  
    7979};
    8080
     81//--------------------------------------------------------------------
     82class BDteNowGmt: public BSystemDate
     83//--------------------------------------------------------------------
     84{
     85public:
     86  BDteNowGmt() : BSystemDate
     87  (
     88    "NowGmt",
     89    BDate::Unknown(),
     90    I2("Today GMT date and time",
     91       "La fecha y la hora de hoy en horario GMT")
     92  ) { }
     93 ~BDteNowGmt() {}
     94  BDate& Contens() { return(contens_ = DteNowGmt()); }
     95};
     96
    8197
    8298#endif // TOL_BDTEGRA_H
Note: See TracChangeset for help on using the changeset viewer.