cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
70
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Joe Dickerson on 16-04-2010 10:36:43 PM
Hello,

I'm looking at the TMS API manual coding example (c# code snippet below) which creates a conference meeting, the problem is that the example just creates a start and end meeting time but doesn't use it to set the conference start and end time and all variations/attmepts to set the Conference.StartTimeUTC/EndTimeUTC time don't work for me.

Can you please provide a code snippet that shows how to set the conference stat and end time?

I tried several flavors of UTC time formats but none work:  :
   conference.StartTimeUTC = "2010-04-17T09:00:30-05:00";
   conference.EndTimeUTC = "2010-04-17T10:00:00-05:00";


TMS BOOKING API SAMPLE CODE SNIPPET
(note it doesn't actually set the conference start and end time).
. . .
// Set start date to the 12th of December, 2000
DateTime startTime = new DateTime(2000, 12, 12, 10,00,00);
DateTime endTime = new DateTime(2000, 12, 12, 11,00,00);
// Save the conference, saving the returned conference (where all
values are now specified)
try
{
conference = bookingService.SaveConference(conference);
}
catch (SoapException e)
{
Console.WriteLine(e.Message);
}

Note:code example snippet tanken from page 25 of TMS API GUIDE:
http://www.tandberg.com/collateral/documentation/Application_Programmer_Interfaces/D1356608_TMS3rdPartyBookingAPI.pdf

Subject: RE: Booking API -  How to set Conference start and end time
Replied by: Aditya Koundinya on 20-04-2010 11:21:23 PM
Use this:

conference.StartTimeUTC = DateTime.UTCNow.toString("u");
conference.EndTimeUTC = DateTime.UTCNow.AddHours(1).toString("u");

Subject: RE: Booking API -  How to set Conference start and end time
Replied by: Paul Currie on 07-05-2010 01:08:06 PM
Joe Dickerson:
I tried several flavors of UTC time formats but none work:  :
   conference.StartTimeUTC = "2010-04-17T09:00:30-05:00";
   conference.EndTimeUTC = "2010-04-17T10:00:00-05:00";


TMS expects UTC time strings to be on the form defined in DateTimeFormatInfo.UniversalSortableDateTimePattern in .NET, which is "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", e.g. "2010-04-17 10:00:00Z". Note that dates must be converted to UTC timezone before formatting since the format string will not contain any timezone information/offset.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links