Generate the current time string in the given format.
(format='%Y-%m-%d %H:%M:%S.%f %z')
| 67 | |
| 68 | |
| 69 | def get_current_time(format='%Y-%m-%d %H:%M:%S.%f %z'): |
| 70 | """ |
| 71 | Generate the current time string in the given format. |
| 72 | """ |
| 73 | return datetime.now(timezone.utc).strftime(format) |
| 74 | |
| 75 | |
| 76 | class IProcessDesc(metaclass=ABCMeta): |
no outgoing calls
no test coverage detected