mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 21:36:49 +02:00
Jinja-Macros separiert und time-Tags hinzugefügt
This commit is contained in:
@@ -78,17 +78,6 @@ def validate_bcrypt_password(password: str) -> bool:
|
||||
return len(password.encode("utf-8")) <= 72
|
||||
|
||||
|
||||
def format_date(date_: date) -> str:
|
||||
"""
|
||||
Formatiert ein Datumsobjekt nach dem deutschen Datumsformat, inklusive Wochentagkürzel (WW, DD.MM.YYYY).
|
||||
von Niklas Elsbrock.
|
||||
|
||||
:param date_: zu formatierendes Datum
|
||||
:return: formatiertes Datum als String
|
||||
"""
|
||||
return date_.strftime("%a, %d.%m.%Y")
|
||||
|
||||
|
||||
def is_integer_string(s: str) -> bool:
|
||||
"""
|
||||
Überprüft, ob der String ``s`` in einen Integer umgewandelt werden kann
|
||||
|
||||
Reference in New Issue
Block a user