Lines Matching refs:x

401   DateTime x, y;  in localtimeOffset()  local
404 x = *p; in localtimeOffset()
405 computeYMD_HMS(&x); in localtimeOffset()
406 if( x.Y<1971 || x.Y>=2038 ){ in localtimeOffset()
407 x.Y = 2000; in localtimeOffset()
408 x.M = 1; in localtimeOffset()
409 x.D = 1; in localtimeOffset()
410 x.h = 0; in localtimeOffset()
411 x.m = 0; in localtimeOffset()
412 x.s = 0.0; in localtimeOffset()
414 int s = x.s + 0.5; in localtimeOffset()
415 x.s = s; in localtimeOffset()
417 x.tz = 0; in localtimeOffset()
418 x.validJD = 0; in localtimeOffset()
419 computeJD(&x); in localtimeOffset()
420 t = (x.rJD-2440587.5)*86400.0 + 0.5; in localtimeOffset()
438 return y.rJD - x.rJD; in localtimeOffset()
614 int x, y; in parseModifier() local
617 x = p->M>0 ? (p->M-1)/12 : (p->M-12)/12; in parseModifier()
618 p->Y += x; in parseModifier()
619 p->M -= x*12; in parseModifier()
672 DateTime x; in juliandayFunc() local
673 if( isDate(argc, argv, &x)==0 ){ in juliandayFunc()
674 computeJD(&x); in juliandayFunc()
675 sqlite_set_result_double(context, x.rJD); in juliandayFunc()
685 DateTime x; in datetimeFunc() local
686 if( isDate(argc, argv, &x)==0 ){ in datetimeFunc()
688 computeYMD_HMS(&x); in datetimeFunc()
689 sprintf(zBuf, "%04d-%02d-%02d %02d:%02d:%02d",x.Y, x.M, x.D, x.h, x.m, in datetimeFunc()
690 (int)(x.s)); in datetimeFunc()
701 DateTime x; in timeFunc() local
702 if( isDate(argc, argv, &x)==0 ){ in timeFunc()
704 computeHMS(&x); in timeFunc()
705 sprintf(zBuf, "%02d:%02d:%02d", x.h, x.m, (int)x.s); in timeFunc()
716 DateTime x; in dateFunc() local
717 if( isDate(argc, argv, &x)==0 ){ in dateFunc()
719 computeYMD(&x); in dateFunc()
720 sprintf(zBuf, "%04d-%02d-%02d", x.Y, x.M, x.D); in dateFunc()
745 DateTime x; in strftimeFunc() local
750 if( argv[0]==0 || isDate(argc-1, argv+1, &x) ) return; in strftimeFunc()
790 computeJD(&x); in strftimeFunc()
791 computeYMD_HMS(&x); in strftimeFunc()
798 case 'd': sprintf(&z[j],"%02d",x.D); j+=2; break; in strftimeFunc()
800 int s = x.s; in strftimeFunc()
801 int ms = (x.s - s)*1000.0; in strftimeFunc()
806 case 'H': sprintf(&z[j],"%02d",x.h); j+=2; break; in strftimeFunc()
810 DateTime y = x; in strftimeFunc()
815 n = x.rJD - y.rJD; in strftimeFunc()
818 wd = ((int)(x.rJD+0.5)) % 7; in strftimeFunc()
827 case 'J': sprintf(&z[j],"%.16g",x.rJD); j+=strlen(&z[j]); break; in strftimeFunc()
828 case 'm': sprintf(&z[j],"%02d",x.M); j+=2; break; in strftimeFunc()
829 case 'M': sprintf(&z[j],"%02d",x.m); j+=2; break; in strftimeFunc()
831 sprintf(&z[j],"%d",(int)((x.rJD-2440587.5)*86400.0 + 0.5)); in strftimeFunc()
835 case 'S': sprintf(&z[j],"%02d",(int)(x.s+0.5)); j+=2; break; in strftimeFunc()
836 case 'w': z[j++] = (((int)(x.rJD+1.5)) % 7) + '0'; break; in strftimeFunc()
837 case 'Y': sprintf(&z[j],"%04d",x.Y); j+=strlen(&z[j]); break; in strftimeFunc()