def ToJsonString(self):
    nanos = self.nanos % _NANOS_PER_SECOND
    total_sec = self.seconds + (self.nanos - nanos) // _NANOS_PER_SECOND
    seconds = total_sec % _SECONDS_PER_DAY
    days = (total_sec - seconds) // _SECONDS_PER_DAY
    dt = datetime(1970, 1, 1) + timedelta(days, seconds)

    result = dt.isoformat()
    if (nanos % 1e9) == 0:


      return result + 'Z'
    if (nanos % 1e6) == 0:

      return result + '.%03dZ' % (nanos / 1e6)
    if (nanos % 1e3) == 0:

      return result + '.%06dZ' % (nanos / 1e3)

    return result + '.%09dZ' % nanos
write, with linefeed
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/net/proto2/python/internal/well_known_types.py/Timestamp.ToJsonString--crossover with--dataset/ETHPy150Open kmpm/nodemcu-uploader/nodemcu_uploader/uploader.py/Uploader.__writeln