IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 2:10:20 PM (19 years ago)
Author:
eugene
Message:

convert str_to_time and related functions to ohana_...; various cleanups for -Wall -Werror

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/photreg/output.c

    r12332 r14590  
    9999   
    100100  /* add current date/time to header */
    101   str_to_time ("now", &tsecond);
    102   datestr = sec_to_date ((unsigned int) tsecond);
     101  ohana_str_to_time ("now", &tsecond);
     102  datestr = ohana_sec_to_date ((unsigned int) tsecond);
    103103  gfits_modify (&header,  "DATE", "%s", 1, datestr);
    104104  gfits_modify (&theader, "DATE", "%s", 1, datestr);
     
    158158  for (i = 0; i < Nkeep; i++) {
    159159    newdata = &photdata[index[i]];
    160     startstr = sec_to_date (newdata[0].tstart);
    161     stopstr = sec_to_date (newdata[0].tstop);
     160    startstr = ohana_sec_to_date (newdata[0].tstart);
     161    stopstr = ohana_sec_to_date (newdata[0].tstop);
    162162    code    = GetPhotcodeNamebyCode (newdata[0].photcode);
    163163    photsys = GetPhotcodeNamebyCode (newdata[0].refcode);
     
    207207   
    208208    /* convert UNIX time to Elixir-style date string */
    209     timestr = sec_to_date (photdata[i].tstart);
     209    timestr = ohana_sec_to_date (photdata[i].tstart);
    210210   
    211211    if (output.photcodenames) {
Note: See TracChangeset for help on using the changeset viewer.