• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Abstract_Account_Api / Abstract_Account_Api::get_expiration_time_stamp()
Product: Virtual Events

Abstract_Account_Api::get_expiration_time_stamp( $expires_in )

Get the expiration time stamp.

Contents

  • Parameters
  • Return
  • Source
  • Changelog

Parameters

(string) (Required) The amount of time in seconds until the access token expires.


Top ↑

Return

(string) The timestamp when the access token expires.


Top ↑

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' );
	}

Expand full source code Collapse full source code


Top ↑

Changelog

Changelog
Version Description
1.9.0 Introduced.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy