1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Do not use long long constants in code. Ticket #3547. (CVS 6048)

FossilOrigin-Name: 51b3bfc3b9628ca4ec754fa7f23aef7302f890ff
This commit is contained in:
drh
2008-12-20 13:18:50 +00:00
parent ecfef98536
commit 7f1e8a071f
3 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,7 @@
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
** $Id: date.c,v 1.98 2008/12/10 22:30:25 shane Exp $
** $Id: date.c,v 1.99 2008/12/20 13:18:50 drh Exp $
**
** SQLite processes all times and dates as Julian Day numbers. The
** dates and times are stored as the number of days since noon
@@ -448,7 +448,7 @@ static sqlite3_int64 localtimeOffset(DateTime *p){
x.tz = 0;
x.validJD = 0;
computeJD(&x);
t = x.iJD/1000 - 210866760000LL;
t = x.iJD/1000 - 21086676*(i64)10000;
#ifdef HAVE_LOCALTIME_R
{
struct tm sLocal;
@@ -550,7 +550,7 @@ static int parseModifier(const char *zMod, DateTime *p){
** seconds since 1970. Convert to a real julian day number.
*/
if( strcmp(z, "unixepoch")==0 && p->validJD ){
p->iJD = p->iJD/86400 + 210866760000000LL;
p->iJD = p->iJD/86400 + 21086676*(i64)10000000;
clearYMD_HMS_TZ(p);
rc = 0;
}