Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
5d35e609
Commit
5d35e609
authored
Sep 08, 2016
by
Thomas Van Lenten
Committed by
GitHub
Sep 08, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2094 from thomasvl/update_wkt_comments
Fix error and add note about lossy issues
parents
14e74f6a
161b9377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
GPBWellKnownTypes.h
objectivec/GPBWellKnownTypes.h
+13
-3
No files found.
objectivec/GPBWellKnownTypes.h
View file @
5d35e609
...
...
@@ -54,7 +54,12 @@ NS_ASSUME_NONNULL_BEGIN
/** The NSDate representation of this GPBTimestamp. */
@property
(
nonatomic
,
readwrite
,
strong
)
NSDate
*
date
;
/** The NSTimeInterval representation of this GPBTimestamp. */
/**
* The NSTimeInterval representation of this GPBTimestamp.
*
* @note: Not all second/nanos combinations can be represented in a
* NSTimeInterval, so getting this could be a lossy transform.
**/
@property
(
nonatomic
,
readwrite
)
NSTimeInterval
timeIntervalSince1970
;
/**
...
...
@@ -82,7 +87,12 @@ NS_ASSUME_NONNULL_BEGIN
**/
@interface
GPBDuration
(
GBPWellKnownTypes
)
/** The NSTimeInterval representation of this GPBTimestamp. */
/**
* The NSTimeInterval representation of this GPBDuration.
*
* @note: Not all second/nanos combinations can be represented in a
* NSTimeInterval, so getting this could be a lossy transform.
**/
@property
(
nonatomic
,
readwrite
)
NSTimeInterval
timeIntervalSince1970
;
/**
...
...
@@ -90,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param timeIntervalSince1970 Time interval to configure the GPBDuration with.
*
* @return A newly initialized GPB
Timestamp
.
* @return A newly initialized GPB
Duration
.
**/
-
(
instancetype
)
initWithTimeIntervalSince1970
:(
NSTimeInterval
)
timeIntervalSince1970
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment