How to use the isodate.date_isoformat function in isodate

To help you get started, we’ve selected a few isodate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smart-on-fhir / fhir-parser / Sample / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)
github nazrulworld / fhir.resources / fhir / resources / DSTU2 / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)
github smart-on-fhir / client-py / fhirclient / models / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)
github nazrulworld / fhir.resources / fhir / resources / STU3 / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)
github all-of-us / raw-data-repository / rdr_service / lib_fhir / fhirclient_3_0_0 / models / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)
github all-of-us / raw-data-repository / rdr_service / lib_fhir / fhirclient_1_0_6 / models / fhirdate.py View on Github external
def isostring(self):
        if self.date is None:
            return None
        if isinstance(self.date, datetime.datetime):
            return isodate.datetime_isoformat(self.date)
        return isodate.date_isoformat(self.date)