• 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 / Account_API / Account_API::get_exiration_time_stamp()
Product: Virtual Events

Account_API::get_exiration_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/Meetings/Zoom/Account_API.php

	public function get_exiration_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.5.0 Introduced.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy