View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#948
Originally Posted by slarti View Post
There is an arithmetic syntax error in the index of the month. $month at the moment returns the string "08" and $((month)) returns the error. I really have no idea why this is so and can't be arsed to find out.

In python, it would be something like this:

Code:
#!/usr/bin/python
from datetime import datetime

months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
month = months[datetime.now().month-1]
print month
Thank you very much ! Now it work again
But now I see year in the second line.. In previous version of script (when it worked) it shown year also in the first line with day of week, date, name of month..
Can i somehow get the year in the first line too ?
Thanks
Attached Images