File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ namespace Aws
70
70
DateTime (int64_t millisSinceEpoch);
71
71
72
72
/* *
73
- * Initializes time point to epoch time in seconds.millis
73
+ * Initializes time point to epoch time in seconds with a millis mantissa,
74
+ *
75
+ * i.e. 1.1 would be 1100 milliseconds
74
76
*/
75
- DateTime (double epoch_millis );
77
+ DateTime (double secondsSinceEpoch );
76
78
77
79
/* *
78
80
* Initializes time point to value represented by timestamp and format.
@@ -95,7 +97,9 @@ namespace Aws
95
97
DateTime operator -(const std::chrono::milliseconds& a) const ;
96
98
97
99
/* *
98
- * Assign from seconds.millis since epoch.
100
+ * Initializes time point to epoch time in seconds with a millis mantissa,
101
+ *
102
+ * i.e. 1.1 would be 1100 milliseconds
99
103
*/
100
104
DateTime& operator =(double secondsSinceEpoch);
101
105
@@ -145,7 +149,9 @@ namespace Aws
145
149
Aws::String ToGmtStringWithMs () const ;
146
150
147
151
/* *
148
- * Get the representation of this datetime as seconds.milliseconds since epoch
152
+ * Get the representation of this datetime as seconds with a millis mantissa since epoch
153
+ *
154
+ * i.e. 1.1 would be 1100 milliseconds
149
155
*/
150
156
double SecondsWithMSPrecision () const ;
151
157
Original file line number Diff line number Diff line change @@ -1121,9 +1121,9 @@ DateTime::DateTime(int64_t millisSinceEpoch) : m_valid(true)
1121
1121
m_time = std::chrono::system_clock::time_point (timestamp);
1122
1122
}
1123
1123
1124
- DateTime::DateTime (double epoch_millis ) : m_valid(true )
1124
+ DateTime::DateTime (double secondsSinceEpoch ) : m_valid(true )
1125
1125
{
1126
- std::chrono::duration<double , std::chrono::seconds::period> timestamp (epoch_millis );
1126
+ std::chrono::duration<double , std::chrono::seconds::period> timestamp (secondsSinceEpoch );
1127
1127
m_time = std::chrono::system_clock::time_point (std::chrono::duration_cast<std::chrono::milliseconds>(timestamp));
1128
1128
}
1129
1129
You can’t perform that action at this time.
0 commit comments