MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_current_time

Function get_current_time

web/pgadmin/misc/bgprocess/processes.py:69–73  ·  view source on GitHub ↗

Generate the current time string in the given format.

(format='%Y-%m-%d %H:%M:%S.%f %z')

Source from the content-addressed store, hash-verified

67
68
69def 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
76class IProcessDesc(metaclass=ABCMeta):

Callers 6

_create_processMethod · 0.70
startMethod · 0.70
update_cloud_detailsMethod · 0.70
statusMethod · 0.70
listMethod · 0.70
acknowledgeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected