<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GeeKs Blogging @ dotCOM &#187; Date function</title>
	<atom:link href="http://geeksbloggingat.com/topics/date-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://geeksbloggingat.com</link>
	<description>Let&#039;s share...</description>
	<lastBuildDate>Tue, 30 Aug 2011 21:29:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Siebel &#8211; getMilliseconds() usage</title>
		<link>http://geeksbloggingat.com/2009/05/15/siebel-getmilliseconds-usage/</link>
		<comments>http://geeksbloggingat.com/2009/05/15/siebel-getmilliseconds-usage/#comments</comments>
		<pubDate>Fri, 15 May 2009 04:50:33 +0000</pubDate>
		<dc:creator>Prachi Sharma</dc:creator>
				<category><![CDATA[Siebel CRM]]></category>
		<category><![CDATA[Date function]]></category>
		<category><![CDATA[eScript]]></category>
		<category><![CDATA[Siebel]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://geeksbloggingat.com/?p=255</guid>
		<description><![CDATA[Siebel by default displays all dates in the system accurate to the seconds place. However, at times, especially in EAI based projects or performance intensive projects, it is often a requirement to calculate accuracy down to the last millisecond. Siebel provides a ready made function called getMilliseconds() for this functionality. I wrote a simple script [...]


<b>Related posts:<b><ol><li><a href='http://geeksbloggingat.com/2009/05/16/siebel-millisecond-dates-on-applet/' rel='bookmark' title='Permanent Link: Siebel &#8211; millisecond dates on Applet'>Siebel &#8211; millisecond dates on Applet</a> <small>I had discussed in my previous posts about invoking a...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/10/siebel-invokeservicemethod-on-calculated-fields/' rel='bookmark' title='Permanent Link: Siebel &#8211; InvokeServiceMethod() on Calculated Fields'>Siebel &#8211; InvokeServiceMethod() on Calculated Fields</a> <small>InvokeServiceMethod() is used to invoke Business Services and take values...</small></li>
<li><a href='http://geeksbloggingat.com/2009/07/24/siebel-fetch-active-view-properties-iii/' rel='bookmark' title='Permanent Link: Siebel &#8211; Fetch Active view properties &#8211; III'>Siebel &#8211; Fetch Active view properties &#8211; III</a> <small>I will discuss a practical example, and the corresponding Inputs...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/03/siebel-eai-queue-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; EAI Queue &#8211; Usage'>Siebel &#8211; EAI Queue &#8211; Usage</a> <small>I had introduced the concept of Siebel EAI Queues in...</small></li>
<li><a href='http://geeksbloggingat.com/2009/08/13/siebel-symbolic-strings-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; Symbolic Strings &#8211; Usage'>Siebel &#8211; Symbolic Strings &#8211; Usage</a> <small>Symbolic Strings appear directly in Siebel Tools&#8217; Object Explorer, an...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Siebel by default displays all dates in the system accurate to the seconds place. However, at times, especially in EAI based projects or performance intensive projects, it is often a requirement to calculate accuracy down to the last millisecond.</p>
<p>Siebel provides a ready made function called getMilliseconds() for this functionality.</p>
<p>I wrote a simple script in Siebel Local Client to demostrate this functionality. The contents of the script, &#8220;Dummy Get_MS Test&#8221; is:</p>
<p><span id="more-255"></span>function Service_PreInvokeMethod (MethodName, Inputs, Outputs)<br />
{</p>
<p>if (MethodName == &#8220;md_getMS&#8221;)<br />
{<br />
var d_test01 = new Date();<br />
TheApplication().RaiseErrorText( d_test01.getMilliseconds() );</p>
<p>return (CancelOperation);<br />
}<br />
	return (CancelOperation);<br />
}</p>
<p>This returned me the value 895 in my tests. To be precise, I received the following output:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Siebel<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
895(SBL-EXL-00151)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>This cannot be hours, minutes or seconds. It has to be milliseconds.</p>
<p>Hence proven!</p>


<p><b>Related posts:<b><ol><li><a href='http://geeksbloggingat.com/2009/05/16/siebel-millisecond-dates-on-applet/' rel='bookmark' title='Permanent Link: Siebel &#8211; millisecond dates on Applet'>Siebel &#8211; millisecond dates on Applet</a> <small>I had discussed in my previous posts about invoking a...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/10/siebel-invokeservicemethod-on-calculated-fields/' rel='bookmark' title='Permanent Link: Siebel &#8211; InvokeServiceMethod() on Calculated Fields'>Siebel &#8211; InvokeServiceMethod() on Calculated Fields</a> <small>InvokeServiceMethod() is used to invoke Business Services and take values...</small></li>
<li><a href='http://geeksbloggingat.com/2009/07/24/siebel-fetch-active-view-properties-iii/' rel='bookmark' title='Permanent Link: Siebel &#8211; Fetch Active view properties &#8211; III'>Siebel &#8211; Fetch Active view properties &#8211; III</a> <small>I will discuss a practical example, and the corresponding Inputs...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/03/siebel-eai-queue-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; EAI Queue &#8211; Usage'>Siebel &#8211; EAI Queue &#8211; Usage</a> <small>I had introduced the concept of Siebel EAI Queues in...</small></li>
<li><a href='http://geeksbloggingat.com/2009/08/13/siebel-symbolic-strings-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; Symbolic Strings &#8211; Usage'>Siebel &#8211; Symbolic Strings &#8211; Usage</a> <small>Symbolic Strings appear directly in Siebel Tools&#8217; Object Explorer, an...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://geeksbloggingat.com/2009/05/15/siebel-getmilliseconds-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

