Ignore:
Timestamp:
Nov 22, 2006, 2:53:31 PM (19 years ago)
Author:
cmv
Message:

mise en conformite xephem 3.7.2 cmv 22/11/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/XephemAstroLib/dbfmt.c

    r2818 r3111  
    142142db_write_line (Obj *op, char lp[])
    143143{
    144         int priorpref;
    145 
    146         /* .edb format always uses MDY.
    147          * N.B. must restore old value before returning from here!
    148          */
    149         priorpref = pref_set (PREF_DATE_FORMAT, PREF_MDY);
    150 
    151144        switch (op->o_type) {
    152145        case FIXED:
     
    182175            abort();
    183176        }
    184 
    185         /* restore date format preference */
    186         (void) pref_set (PREF_DATE_FORMAT, priorpref);
    187177}
    188178
     
    836826            *lp++ = '|';
    837827            if (*sp)
    838                 lp += fs_date (lp, *sp);
     828                lp += fs_date (lp, PREF_MDY, *sp);
    839829            if (*ep) {
    840830                *lp++ = '|';
    841                 lp += fs_date (lp, *ep);
     831                lp += fs_date (lp, PREF_MDY, *ep);
    842832            }
    843833        }
     
    885875        lp += sprintf (lp, ",%.7g", op->e_M);
    886876        *lp++ = ',';
    887         lp += fs_date (lp, op->e_cepoch);
     877        lp += fs_date (lp, PREF_MDY, op->e_cepoch);
    888878        lp += get_okdates (lp, &op->e_startok, &op->e_endok);
    889879        *lp++ = ',';
    890         lp += fs_date (lp, op->e_epoch);
     880        lp += fs_date (lp, PREF_MDY, op->e_epoch);
    891881        if (op->e_mag.whichm == MAG_gk)
    892882            lp += sprintf (lp, ",g%.7g", op->e_mag.m1);
     
    904894        lp += sprintf (lp, "%s,h", op->o_name);
    905895        *lp++ = ',';
    906         lp += fs_date (lp, op->h_ep);
     896        lp += fs_date (lp, PREF_MDY, op->h_ep);
    907897        lp += get_okdates (lp, &op->h_startok, &op->h_endok);
    908898        lp += sprintf (lp, ",%.7g", op->h_inc);
     
    912902        lp += sprintf (lp, ",%.7g", op->h_qp);
    913903        *lp++ = ',';
    914         lp += fs_date (lp, op->h_epoch);
     904        lp += fs_date (lp, PREF_MDY, op->h_epoch);
    915905        lp += sprintf (lp, ",%.7g", op->h_g);
    916906        lp += sprintf (lp, ",%.7g", op->h_k);
     
    923913        lp += sprintf (lp, "%s,p", op->o_name);
    924914        *lp++ = ',';
    925         lp += fs_date (lp, op->p_ep);
     915        lp += fs_date (lp, PREF_MDY, op->p_ep);
    926916        lp += get_okdates (lp, &op->p_startok, &op->p_endok);
    927917        lp += sprintf (lp, ",%.7g", op->p_inc);
     
    930920        lp += sprintf (lp, ",%.7g", op->p_Om);
    931921        *lp++ = ',';
    932         lp += fs_date (lp, op->p_epoch);
     922        lp += fs_date (lp, PREF_MDY, op->p_epoch);
    933923        lp += sprintf (lp, ",%.7g", op->p_g);
    934924        lp += sprintf (lp, ",%.7g", op->p_k);
     
    941931        lp += sprintf (lp, "%s,E", op->o_name);
    942932        *lp++ = ',';
    943         lp += fs_date (lp, op->es_epoch);
     933        lp += fs_date (lp, PREF_MDY, op->es_epoch);
    944934        lp += get_okdates (lp, &op->es_startok, &op->es_endok);
    945935        lp += sprintf (lp, ",%.7g", op->es_inc);
     
    1006996
    1007997/* For RCS Only -- Do Not Edit */
    1008 static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2005-08-21 10:02:37 $ $Revision: 1.6 $ $Name: not supported by cvs2svn $"};
     998static char *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2006-11-22 13:53:28 $ $Revision: 1.7 $ $Name: not supported by cvs2svn $"};
Note: See TracChangeset for help on using the changeset viewer.