Commit dbcbc226 authored by 张彦钊's avatar 张彦钊

add multi_ffm function

parents 5610158f 4a69002b
...@@ -2,19 +2,19 @@ import datetime ...@@ -2,19 +2,19 @@ import datetime
import pymysql import pymysql
#一周之前的timestamp(1~7) #一周之前的timestamp(7)
my_date1 = datetime.date.today() - datetime.timedelta(days=7) my_date1 = datetime.date.today() - datetime.timedelta(days=7)
my_tm1 = int(my_date1.strftime("%s")) my_tm1 = int(my_date1.strftime("%s"))
#二周之前的timestamp(8_14) #二周之前的timestamp(14)
my_date2 = datetime.date.today() - datetime.timedelta(days=14) my_date2 = datetime.date.today() - datetime.timedelta(days=14)
my_tm2 = int(my_date2.strftime("%s")) my_tm2 = int(my_date2.strftime("%s"))
#一个月之前的timestamp(15~30) #一个月之前的timestamp(30)
my_date3 = datetime.date.today() - datetime.timedelta(days=30) my_date3 = datetime.date.today() - datetime.timedelta(days=30)
my_tm3 = int(my_date3.strftime("%s")) my_tm3 = int(my_date3.strftime("%s"))
#两个月之前的timestamp(31~60) #两个月之前的timestamp(60)
my_date4 = datetime.date.today() - datetime.timedelta(days=60) my_date4 = datetime.date.today() - datetime.timedelta(days=60)
my_tm4 = int(my_date4.strftime("%s")) my_tm4 = int(my_date4.strftime("%s"))
#三个月之前的timestamp(61~90) #三个月之前的timestamp(90)
my_date5 = datetime.date.today() - datetime.timedelta(days=90) my_date5 = datetime.date.today() - datetime.timedelta(days=90)
my_tm5 = int(my_date5.strftime("%s")) my_tm5 = int(my_date5.strftime("%s"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment