code: def date_time_this_month():
          
          now = datetime.now()
          this_month_start = now.replace(
              day=1, hour=0, minute=0, second=0, microsecond=0)
          this_month_days = calendar.monthrange(now.year, now.month)
          random_seconds = random.randint(0, this_month_days[1]*A_DAY_SECONDS)
  
          return this_month_start + timedelta(seconds=random_seconds)
docs: 获取当前月的随机时间
  
          :return:
              * date_this_month: (datetime) 当前月份的随机时间
  
          举例如下::
  
              print('--- GetRandomTime.date_time_this_month demo ---')
              print(GetRandomTime.date_time_this_month())
              print('---')
  
          执行结果::
      
              --- GetRandomTime.date_time_this_month demo demo ---
              2018-07-01 12:47:20
              ---