Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non Stupid Date and Time parameters #281

Open
Lexorius opened this issue Jul 13, 2022 · 0 comments
Open

non Stupid Date and Time parameters #281

Lexorius opened this issue Jul 13, 2022 · 0 comments

Comments

@Lexorius
Copy link

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).**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant