[python] bash script do Pythonu
Marek Nožka
marek na tlapicka.net
Úterý Září 30 16:29:40 CEST 2014
Dobrý den || ahoj
Co toto?:
>>> import datetime
>>> datetime.date.today()
--> datetime.date(2014, 9, 30)
>>> datetime.date.today() - datetime.date(2014, 9, 29)
--> datetime.timedelta(1)
>>> datetime.date.today() + datetime.timedelta(1)
--> datetime.date(2014, 10, 1)
>>> datetime.date.today() + datetime.timedelta(-1)
--> datetime.date(2014, 9, 29)
Marek
--
@ @ @ Marek Nožka
'****.@
:*****`@ email: marek <@t> tlapicka <d.t> net
`*****' jabber: tlapicka <@t> jabber <d.t> spseol <d.t> cz
:****: web: http://tlapicka.net/
`****'
`****' Powered by Debian GNU/Linux
`.**'
¨¨
Další informace o konferenci Python