/ Published in: Python

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def sinceParm(d): #曜日 date = decoThree(d.strftime("%A")) #æ—¥ã«ã¡ day = decoDay(d.strftime("%d")) #月 mth = decoThree(d.strftime("%B")) #年日時 ytime = d.strftime("%Y+%H %M %S") ytime = ytime.replace(' ','%3A') return date + "%2C+"+ day + "+" + mth + "+" + ytime + "+GMT" def decoDay(day): if (day[0] == "0"):return day[1] else:return day def decoThree(string): deco = string[0]+string[1]+string[2] return deco
Comments
