https://bugzilla.wikimedia.org/show_bug.cgi?id=64501

--- Comment #4 from Ricordisamoa <ricordisa...@live.it> ---
(In reply to Mpaa from comment #1)
> There is already class WbTime(object) with the methods above. Shouldn't we
> extend this class instead, with a method that accepts a pywikibot.Timestamp
> as input ("fromTimeStampToWbTime" or similar?)?

pywikibot.WbTime.fromTimestr(timestamp.toISOformat()) already works perfectly.

(In reply to Maarten Dammers from comment #2)
> I completely overlooked WbTime. Shouldn't the two of them be merged into one
> object?

Maybe, but WbTime has Wikibase-specific attributes like "precision", "after",
"before" and "calendarmodel".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to