<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.simplybook.me/index.php?action=history&amp;feed=atom&amp;title=Translations%3AUser_API_guide%2F51%2Fen</id>
	<title>Translations:User API guide/51/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://help.simplybook.me/index.php?action=history&amp;feed=atom&amp;title=Translations%3AUser_API_guide%2F51%2Fen"/>
	<link rel="alternate" type="text/html" href="https://help.simplybook.me/index.php?title=Translations:User_API_guide/51/en&amp;action=history"/>
	<updated>2026-06-21T07:50:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://help.simplybook.me/index.php?title=Translations:User_API_guide/51/en&amp;diff=14799&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="https://help.simplybook.me/index.php?title=Translations:User_API_guide/51/en&amp;diff=14799&amp;oldid=prev"/>
		<updated>2025-05-15T12:19:49Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Another usefull method you may need is calculateEndTime. Each service can have its own duration, also your company&amp;#039;s employees possible have different work schedule form day to day. So using this method you can show to a client an end date and time of the service he&amp;#039;ve booked in a correct way.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Code example of calculating booking end time&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;$startDateTime = &amp;#039;2015-03-03 09:00:00&amp;#039;;&lt;br /&gt;
$serviceId = 1;&lt;br /&gt;
$performerId = 1;&lt;br /&gt;
$availableTime = $client-&amp;gt;calculateEndTime($startDateTime, $serviceId, $performerId);&lt;br /&gt;
// returns &amp;#039;2015-03-03 10:00:00&amp;#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>