Код: Выделить всё
#!/usr/bin/python
import time
if __name__=='__main__':
if time.localtime().tm_yday==0x100:
print 'Happy Programmer`s day !!!'
Код: Выделить всё
#!/usr/bin/python
import time
if __name__=='__main__':
if time.localtime().tm_yday==0x100:
print 'Happy Programmer`s day !!!'
Код: Выделить всё
Day::model()->getByNumber(0x100)->onAfterSunset = function($e){
$sender->endCoding();
$sender->startBeer();
}