You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, i'm not sure if this request belongs here or on avrae/avrae (or if feature requests are welcome :p ) but i would find it really helpful if datetime was made available to users of draconic
i have code like this in a custom command of mine; very much "smelly" and probably buggy as well:
days_of_the_week= ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
num_days_in_week=len(days_of_the_week)
# the unix epoch is a thursdayepoch_starts_on=3now_timestamp=time()
seconds_per_day=60*60*24epoch_day=floor(now_timestamp/seconds_per_day)
epoch_day_of_the_week= ((epoch_day+epoch_starts_on) %len(days_of_the_week))
seconds_left_in_day=seconds_per_day- (now_timestamp%seconds_per_day)
minutes_left_in_day=floor((seconds_left_in_day/60) %60)
hours_left_in_day=floor((seconds_left_in_day/60) /60)
The text was updated successfully, but these errors were encountered:
hello, i'm not sure if this request belongs here or on avrae/avrae (or if feature requests are welcome :p ) but i would find it really helpful if datetime was made available to users of draconic
i have code like this in a custom command of mine; very much "smelly" and probably buggy as well:
The text was updated successfully, but these errors were encountered: