Page MenuHomePhabricator

Add pywikibot.WbTime.now()
Closed, InvalidPublicFeature

Description

Feature summary (what you would like to be able to do and where): Instantly get a WbTime object for the current time.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): Would mean that I no longer need to use datetime.datetime.now(tz=datetime.timezone.UTC) and pull the values from there

Benefits (why should this be implemented?): Reduces boilerplate code