Changeset 98 for trunk/orca/unix

Show
Ignore:
Timestamp:
03/23/06 01:35:12 (3 years ago)
Author:
krobillard
Message:

Time is now stored as double. Removed OTime.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/unix/os.c

    r71 r98  
    7575 
    7676    orSetTF( res, OT_TIME ); 
    77     res->time.sec  = buf.st_mtime; 
    78     res->time.usec = 0; 
     77    orSeconds(res) = buf.st_mtime; 
    7978    return 0; 
    8079} 
     
    156155        orSetTF( res, OT_DATE ); 
    157156 
    158     res->time.sec  = tp.tv_sec; 
    159     res->time.usec = tp.tv_usec; 
     157    orSeconds(res) = tp.tv_sec + (tp.tv_usec * 0.000001); 
    160158} 
    161159