mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-21 15:50:20 +01:00
little docu mistake in helper.py
This commit is contained in:
parent
29873c5ec3
commit
dea33d5b7e
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
"""
|
||||
little Helper functions
|
||||
mainly for direct usw in plugins to save code
|
||||
|
||||
@author: Bastian Schroll
|
||||
"""
|
||||
|
|
@ -12,9 +13,10 @@ import logging
|
|||
import time
|
||||
|
||||
|
||||
def freqToHz(freq):
|
||||
def curtime(format="%d.%m.%Y %H:%M:%S"):
|
||||
"""
|
||||
gets a frequency and resolve it in Hz
|
||||
Returns formated date and/or time
|
||||
see: https://docs.python.org/2/library/time.html#time.strftime
|
||||
|
||||
@type format: string
|
||||
@param format: Python time Format-String
|
||||
|
|
@ -22,7 +24,6 @@ def freqToHz(freq):
|
|||
@return: Formated Time and/or Date
|
||||
@exception: Exception if Error in format
|
||||
"""
|
||||
def curtime(format="%d.%m.%Y %H:%M:%S"):
|
||||
try:
|
||||
return time.strftime(format)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue