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
161b9377
Commit
161b9377
authored
Sep 08, 2016
by
Thomas Van Lenten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error and add note about lossy issues
parent
4bc16578
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 @
161b9377
...
@@ -54,7 +54,12 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -54,7 +54,12 @@ NS_ASSUME_NONNULL_BEGIN
/** The NSDate representation of this GPBTimestamp. */
/** The NSDate representation of this GPBTimestamp. */
@property
(
nonatomic
,
readwrite
,
strong
)
NSDate
*
date
;
@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
;
@property
(
nonatomic
,
readwrite
)
NSTimeInterval
timeIntervalSince1970
;
/**
/**
...
@@ -82,7 +87,12 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -82,7 +87,12 @@ NS_ASSUME_NONNULL_BEGIN
**/
**/
@interface
GPBDuration
(
GBPWellKnownTypes
)
@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
;
@property
(
nonatomic
,
readwrite
)
NSTimeInterval
timeIntervalSince1970
;
/**
/**
...
@@ -90,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -90,7 +100,7 @@ NS_ASSUME_NONNULL_BEGIN
*
*
* @param timeIntervalSince1970 Time interval to configure the GPBDuration with.
* @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
;
-
(
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