Changeset 286
- Timestamp:
- 04/27/08 12:27:52 (7 months ago)
- Files:
-
- trunk/mdcl.zip (modified) (previous)
- trunk/minid/oslib.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/minid/oslib.d
r284 r286 184 184 int dateTime(MDState s, uint numParams) 185 185 { 186 bool useGMT = false; 186 187 MDTable t = null; 187 188 188 189 if(numParams > 0) 189 t = s.getParam!(MDTable)(0); 190 191 s.push(DateTimeToTable(s, WallClock.toDate, t)); 190 { 191 if(s.isParam!("bool")(0)) 192 { 193 useGMT = s.getParam!(bool)(0); 194 195 if(numParams > 1) 196 t = s.getParam!(MDTable)(1); 197 } 198 else 199 t = s.getParam!(MDTable)(0); 200 } 201 202 s.push(DateTimeToTable(s, useGMT ? Clock.toDate : WallClock.toDate, t)); 192 203 return 1; 193 204 }
