GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Documentation is incorrect/confusing for Timestamp.parseTimestamp · Issue #4583 · googleapis/google-cloud-java Closed Labels api: corepriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionThe code currently in master is: /** * Creates a Timestamp instance from the given string. String is in the RFC 3339 format without * the timezone offset (always ends in "Z"). */ public static Timestamp parseTimestamp(String timestamp) { Instant instant = Instant.parse(timestamp); return ofTimeSecondsAndNanos(instant.getEpochSecond(), instant.getNano()); } But if we look at the code for /** * Obtains an instance of {@code Instant} from a text string such as * {@code 2007-12-03T10:15:30.000Z}. * <p> * The string must represent a valid instant in UTC and is parsed using * {@link DateTimeFormatter#ISO_INSTANT}. * * @param text the text to parse, not null * @return the parsed instant, not null * @throws DateTimeParseException if the text cannot be parsed */ public static Instant parse(final CharSequence text) { return DateTimeFormatter.ISO_INSTANT.parse(text, Instant.FROM); } This implies to me that per the Google Cloud
But it generates: It also would imply to me that the following shouldn't work:
Activity
MetadataMetadataAssigneesLabelsapi: corepriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |