XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • data sources

    Description

      In ocw/data_source/rcmed.py file

      if time_step.lower() == 'monthly':
              if time.day != 1:
                  start_time_string = time.strftime('%Y%m%d')
                  start_time_string = start_time_string[:6] + '01'
                  time = datetime.strptime(start_time_string, '%Y%m%d')
                  ##TODO: Change the 3 lines above with this line:
                  ##time = datetime(time.year, time.month, 1)
          elif time_step.lower() == 'daily':
              if time.hour != 0 or time.minute != 0 or time.second != 0:
                  start_time_string = time.strftime('%Y%m%d%H%M%S')
                  start_time_string = start_time_string[:8] + '000000'	
                  time = datetime.strptime(start_time_string, '%Y%m%d%H%M%S')
                  ##TODO: Change the 3 lines above with this line:
                  ##time = datetime(time.year, time.month, time.day, 00, 00, 00)
      

      The commented code can be used in place of the actual code.

      Attachments

        Issue Links

          Activity

            People

              jarifibrahim Ibrahim Jarif
              jarifibrahim Ibrahim Jarif
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: