Created
April 25, 2020 08:55
-
-
Save zeffii/e4eba04114f2bb5b6d604249203be799 to your computer and use it in GitHub Desktop.
datetime for gist test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import localtime as tl | |
import sverchok | |
import bpy | |
from sverchok.utils.sv_update_utils import version_and_sha | |
ng = bpy.data.node_groups['NodeTree'] | |
# ng = context.space_data.node_tree | |
gist_filename = ng.name | |
gist_description = "Sverchok_"+version_and_sha+ng.name+"_Bl_"+bpy.app.version_string.replace(" ","")+str(tl().tm_year)+str(tl().tm_mon)+str(tl().tm_mday)+str(tl().tm_hour) | |
print('A', gist_description) | |
from time import localtime, strftime | |
app_version = bpy.app.version_string.replace(" ","") | |
time_stamp = strftime("%Y_%m_%d_%H_%M", localtime()) | |
proposed_description = f"Sverchok_{version_and_sha}_{ng.name}_B{app_version}{time_stamp}" | |
print('B', proposed_description) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment