Convert datetime and timedelta from Python to IDL
Convert datetime and timedelta from Python to IDL Question: Please does anyone know how to convert the following python script to IDL, hours = list(Timed) start_date = datetime(year=1800, month=1, day=1, hour=0, minute=0, second=0) days =[] Months =[] Years =[] for hour in hours: date = start_date + timedelta(hours=hour) Months.append(date.month) Years.append(date.year) The script converts the data …