Extracts nanoseconds from a ZonedDateTime

def _zdt_to_nanos(self, zdt):
        """Extracts nanoseconds from a ZonedDateTime"""
        instant = zdt.toInstant()
        return instant.getNano() + instant.getEpochSecond() * 1000000000