mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
* Move tests, create makefile action to run tests on examples * Correct import file for html files * Build environment for tests * Fix the CI * rearrange CI * fix find cmd and make sure we don't delete the folder implicitly * more rearranging * fix folder permissions and custom sed for subfolders * add toga wheels files * re-add missing file * mirror latest changes in alpha ci * fix find cmd * try different fix for find * remove redundant build Co-authored-by: mariana <marianameireles@protonmail.com> Co-authored-by: pww217 <pwilson@anaconda.com> Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
18 lines
364 B
Python
18 lines
364 B
Python
from datetime import datetime as dt
|
|
|
|
|
|
def format_date(dt_, fmt="%m/%d/%Y, %H:%M:%S"):
|
|
return dt_.strftime(fmt)
|
|
|
|
|
|
def now(fmt="%m/%d/%Y, %H:%M:%S"):
|
|
return format_date(dt.now(), fmt)
|
|
|
|
|
|
def remove_class(element, class_name):
|
|
element.element.classList.remove(class_name)
|
|
|
|
|
|
def add_class(element, class_name):
|
|
element.element.classList.add(class_name)
|