File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,17 +322,17 @@ impl Asn1Time {
322
322
323
323
/// Creates a new time with the current time
324
324
pub fn now ( ) -> Result < Asn1Time , ErrorStack > {
325
- Asn1Time :: from_period ( 0 )
325
+ Asn1Time :: seconds_from_now ( 0 )
326
326
}
327
327
328
328
/// Creates a new time on specified interval in days from now
329
329
pub fn days_from_now ( days : u32 ) -> Result < Asn1Time , ErrorStack > {
330
- Asn1Time :: from_period ( days as c_long * 60 * 60 * 24 )
330
+ Asn1Time :: seconds_from_now ( days as c_long * 60 * 60 * 24 )
331
331
}
332
332
333
333
/// Creates a new time on specified interval in seconds from now
334
334
pub fn seconds_from_now ( seconds : c_long ) -> Result < Asn1Time , ErrorStack > {
335
- Self :: from_period ( seconds)
335
+ Asn1Time :: from_period ( seconds)
336
336
}
337
337
338
338
/// Creates a new time from the specified `time_t` value
You can’t perform that action at this time.
0 commit comments