Changeset 1102 in lmdz_wrf for trunk/tools/generic_tools.py
- Timestamp:
- Sep 12, 2016, 5:16:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1101 r1102 599 599 # Seconds between dates 600 600 DT = edateT - idateT 601 Nsecs = DT.total_seconds() 601 # Python version depending 602 if searchInlist(dir(DT), 'total_seconds'): 603 Nsecs = DT.total_seconds() 604 else: 605 Nsecs = DT.days*24*3600. + DT.seconds 602 606 603 607 oinf = oinf + ',' + str(Nsecs) … … 1037 1041 # Seconds between dates 1038 1042 DT = edateT - idateT 1039 Nsecs = DT.total_seconds() 1043 # Python version depending 1044 if searchInlist(dir(DT), 'total_seconds'): 1045 Nsecs = DT.total_seconds() 1046 else: 1047 Nsecs = DT.days*24*3600. + DT.seconds 1040 1048 1041 1049 oinf = oinf + ',' + str(Nsecs)
Note: See TracChangeset
for help on using the changeset viewer.