File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/lustre_file_storage/models/date_and_time.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250228 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class DateAndTime(object): """ A generic object to show date and time in the below specified format """ def __init__(self, **kwargs): """ Initializes a new DateAndTime object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param date: The value to assign to the date property of this DateAndTime. :type date: str :param time: The value to assign to the time property of this DateAndTime. :type time: str """ self.swagger_types = { 'date': 'str', 'time': 'str' } self.attribute_map = { 'date': 'date', 'time': 'time' } self._date = None self._time = None @property def date(self): """ Gets the date of this DateAndTime. A user-friendly date. Example: `2025-04-25` :return: The date of this DateAndTime. :rtype: str """ return self._date @date.setter def date(self, date): """ Sets the date of this DateAndTime. A user-friendly date. Example: `2025-04-25` :param date: The date of this DateAndTime. :type: str """ self._date = date @property def time(self): """ Gets the time of this DateAndTime. A user-friendly time. The format is 'HH:MM', 'HH:MM' represents the time in UTC. Example: `22:00` :return: The time of this DateAndTime. :rtype: str """ return self._time @time.setter def time(self, time): """ Sets the time of this DateAndTime. A user-friendly time. The format is 'HH:MM', 'HH:MM' represents the time in UTC. Example: `22:00` :param time: The time of this DateAndTime. :type: str """ self._time = time def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings