Skip to content

Commit 9b4af58

Browse files
authored
docs: clarify documentation on date formats (#196)
System.out.printf("Blob updatetime: %s", blob.getUpdateTime()); The output was Blob updatetime: 1582157090238 I verified that this was ms after epoch: $ date -d @1582157090 Wed 19 Feb 2020 04:04:50 PM PST I also traced the code to this function: https://github.com/googleapis/google-http-java-client/blob/master/google-http-client/src/main/java/com/google/api/client/util/DateTime.java#L53 I assumed that create and delete times used the same format.
1 parent 6c7a498 commit 9b4af58

File tree

1 file changed

+12
-3
lines changed
  • google-cloud-storage/src/main/java/com/google/cloud/storage

1 file changed

+12
-3
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java

+12-3
Original file line numberDiff line numberDiff line change
@@ -795,17 +795,26 @@ public Long getMetageneration() {
795795
return metageneration;
796796
}
797797

798-
/** Returns the deletion time of the blob. */
798+
/**
799+
* Returns the deletion time of the blob expressed as the number of milliseconds since the Unix
800+
* epoch.
801+
*/
799802
public Long getDeleteTime() {
800803
return deleteTime;
801804
}
802805

803-
/** Returns the last modification time of the blob's metadata. */
806+
/**
807+
* Returns the last modification time of the blob's metadata expressed as the number of
808+
* milliseconds since the Unix epoch.
809+
*/
804810
public Long getUpdateTime() {
805811
return updateTime;
806812
}
807813

808-
/** Returns the creation time of the blob. */
814+
/**
815+
* Returns the creation time of the blob expressed as the number of milliseconds since the Unix
816+
* epoch.
817+
*/
809818
public Long getCreateTime() {
810819
return createTime;
811820
}

0 commit comments

Comments
 (0)