Abstract_Account_Api::get_expiration_time_stamp( $expires_in )
Get the expiration time stamp.
Contents
Parameters
-
(string) (Required) The amount of time in seconds until the access token expires.
Return
(string) The timestamp when the access token expires.
Source
File: src/Tribe/Integrations/Abstract_Account_Api.php
public function get_expiration_time_stamp( $expires_in ) {
// Take the expiration in seconds as provided by the server and remove a minute to pad for save delays.
return ( (int) $expires_in ) - MINUTE_IN_SECONDS + current_time( 'timestamp' );
}
Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |