get_current_time#

PySeismoSoil.helper_generic.get_current_time(for_filename: bool = True) str[source]#

Get current time as a string (e.g., 2001-01-01 23:59:59).

Parameters:

for_filename (bool) – Whether the returned string is for filenames or not. If so, colons are substituted with dashes, and the space is substituted with an underscore.

Returns:

The current time as a string (such as “2001-01-01 23:59:59”)

Return type:

str