Lokal_Profil added a comment.

  True if we introduce a `fromTimestamp()` to `__-init.py__.WbTime` which goes 
from (possibly both ways) `pywikibot.Timestamp` to `WbTime`
  
  then:
  `today = pywikibot.WbTime.fromTimestamp(pywikibot.Timestamp.today())` should 
do it.
  
  techically this can be done already using
  `today = 
pywikibot.WbTime.fromTimestr(pywikibot.Timestamp.today().isoformat())` but I 
think it would make sense to have a converter to go from one of our time 
formats to the other.

TASK DETAIL
  https://phabricator.wikimedia.org/T131624

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lokal_Profil
Cc: Xqt, Aklapper, Lokal_Profil, pywikibot-bugs-list, jayvdb, Ricordisamoa



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to