Changeset 1270 for trunk/psLib/src/astronomy/psTime.c
- Timestamp:
- Jul 22, 2004, 10:56:40 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psTime.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psTime.c
r1268 r1270 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-07-22 20:5 4:32$14 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-07-22 20:56:40 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 278 278 if(year < 1900) { 279 279 psError(__func__,"Years less than 1900 not allowed. Value: %d", year); 280 return outTime; 280 281 } 281 282 … … 283 284 if(month<1 || month>12) { 284 285 psError(__func__,"Month must have a value from 0 to 11. Value: %d", month); 286 return outTime; 285 287 } 286 288 … … 288 290 if(day<1 || day>31) { 289 291 psError(__func__,"Day must have a value from 1 to 31. Value: %d", day); 292 return outTime; 290 293 } 291 294 … … 293 296 if(hour<0 || hour>23) { 294 297 psError(__func__,"Hour must have a value from 0 to 23. Value: %d", hour); 298 return outTime; 295 299 } 296 300 … … 298 302 if(minute<0 || minute>59) { 299 303 psError(__func__,"Minute must have a value from 0 to 59. Value: %d", minute); 304 return outTime; 300 305 } 301 306 … … 303 308 if(second<0 || second>59) { 304 309 psError(__func__,"Second must have a value from 0 to 59. Value: %d", second); 310 return outTime; 305 311 } 306 312 … … 308 314 if(millisecond<0 || millisecond>1000) { 309 315 psError(__func__,"Millisecond must have a value from 0 to 999. Value: %d", millisecond); 316 return outTime; 310 317 } 311 318
Note:
See TracChangeset
for help on using the changeset viewer.
