Changeset bb3467e in tol


Ignore:
Timestamp:
Mar 6, 2012, 9:28:59 AM (15 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
abbbbef
Parents:
c300cb7
Message:

Fixes #1462

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

Location:
tol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/dtealgeb.cpp

    rc300cb7 rbb3467e  
    473473  BInt days;
    474474  BInt rest, i;
    475   if(!HasValue()) { return(year_*366); }
     475  if(*this==begin_) { return(-115782); }
     476  if(*this==end_) { return(219147); }
     477  if(!HasValue()) { return(2147483647); }
    476478
    477479  days = (year_ / 400) * DAYSCICLE400;
  • tol/btol/real_type/datgrav.cpp

    rc300cb7 rbb3467e  
    373373  void BDatDateToIndex::CalcContens()
    374374//--------------------------------------------------------------------
    375 { contens_ = Date(Arg(1)).Index(); }
     375{
     376  BDate& dte = Date(Arg(1));
     377  int dayIdx = dte.DayIndex();
     378  if(dayIdx!=2147483647) { contens_ = dte.Index(); }
     379}
    376380
    377381
Note: See TracChangeset for help on using the changeset viewer.