mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 05:47:09 +01:00
* Added overviews for wx.FileSystem, wx.ToolBar and wx.DateTime (thanks to the wxWidgets docs); * Converted many snippets from C++ to Python for wx.ToolBar, wx.DateTime and wx.TextEntry; * Updated the conf.py file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
6 lines
216 B
Python
6 lines
216 B
Python
|
|
dt = wx.DateTimeFromDMY(8, 5, 1977)
|
|
y = dt.GetYear()
|
|
epoch = (y > 0 and ["AD"] or ["BC"])[0]
|
|
print "The year is %d%s"%(wx.DateTime.ConvertYearToBC(y), epoch)
|