Converts a cftime.datetime object to a string with the format: YYYY-MM-DD HH:MM:SS.UUUUUU
(date)
| 789 | |
| 790 | |
| 791 | def format_cftime_datetime(date) -> str: |
| 792 | """Converts a cftime.datetime object to a string with the format: |
| 793 | YYYY-MM-DD HH:MM:SS.UUUUUU |
| 794 | """ |
| 795 | return f"{date.year:04d}-{date.month:02d}-{date.day:02d} {date.hour:02d}:{date.minute:02d}:{date.second:02d}.{date.microsecond:06d}" |
| 796 | |
| 797 | |
| 798 | def infer_timedelta_units(deltas) -> str: |
no outgoing calls
searching dependent graphs…