-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Using the Api with any other Scripts requires massiv conversions of time and date formats. Instead of Default Date Format (year, month, Day or day-month-year is month-day-year used. no other software is compatible.
also time is entered with the antique am/pm format. not a single database or script is using such things. also it is a parameter extra in the time field with chars - also not even close friendly to use in controlscripts. if i read the code correctly, even internal no such format is used.
Solution:
Use global standart time and date formats.
Date either Y-m-d or d-m-Y
time either H:i:s 0-23 or even swatch internet beats.
Alternatives:
none.
why ?
def _date_time_conversion(self, date, time, timeout=30):
"""All date values returned by the Rubrik API are stored in Coordinated Universal Time (UTC)
and need to be converted to the timezone configured on the Rubrik cluster in order to match
the values provided by the end user in various functions. This internal function will handle that
conversion process.
Arguments:
date {str} -- A date value formated as `Month-Day-Year` (ex: 1/15/2014).
time {str} -- A time value formated as `Hour:Minute AM/PM` (ex: 1:30 AM).
Returns:
str -- **A combined date/time value formated as `Year-Month-DayTHour:Minute` where Hour:Minute is on the 24-hour clock (ex : 2014-1-15T01:30).**