<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - How 2 chk TTime object contains date &amp;amp; time in correct format - Comments</title>
 <link>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format</link>
 <description>Comments for &quot;How 2 chk TTime object contains date &amp; time in correct format&quot;</description>
 <language>en</language>
<item>
 <title>Re: How 2 chk TTime object contains date &amp; time in correct forma</title>
 <link>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format#comment-41895</link>
 <description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;might this function will help u..&lt;/p&gt;

&lt;p&gt;TInt CTestAppUi::CompareTime(TTime aTimeFst, TTime aTimeSnd)&lt;br /&gt;
	{&lt;br /&gt;
	const TInt EMinutesPerHour = 60;&lt;/p&gt;

&lt;p&gt;	TInt iRetVal(0);&lt;br /&gt;
	TInt iTimeFst =	aTimeFst.DateTime().Hour() * EMinutesPerHour + aTimeFst.DateTime().Minute(); &lt;br /&gt;
	TInt iTimeSnd = aTimeSnd.DateTime().Hour() * EMinutesPerHour + aTimeSnd.DateTime().Minute();&lt;br /&gt;
	&lt;br /&gt;
	if(iTimeFst == iTimeSnd)&lt;br /&gt;
		{&lt;br /&gt;
		&lt;br /&gt;
		iRetVal = 0;&lt;br /&gt;
		}&lt;br /&gt;
	else if(iTimeFst &lt; iTimeSnd)&lt;br /&gt;
		{&lt;br /&gt;
		&lt;br /&gt;
		iRetVal = -1;&lt;br /&gt;
		}&lt;br /&gt;
	else&lt;br /&gt;
		{&lt;br /&gt;
		&lt;br /&gt;
		iRetVal = 1;&lt;br /&gt;
		}&lt;/p&gt;

&lt;p&gt;	return iRetVal;&lt;br /&gt;
	}&lt;/p&gt;

&lt;p&gt;Regards,&lt;br /&gt;
Mateen Maldar&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Fri, 28 Sep 2007 23:46:22 +0200</pubDate>
 <dc:creator>mateen_maldar</dc:creator>
 <guid isPermaLink="false">comment 41895 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How 2 chk TTime object contains date &amp; time in correct forma</title>
 <link>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format#comment-41865</link>
 <description>&lt;p&gt;The TTime class is just a 64 bit integer with the number or microseconds since &quot;midnight, January 1st, 0 AD nominal Gregorian&quot;.&lt;/p&gt;

&lt;p&gt;It doesn&#039;t have any format.&lt;/p&gt;</description>
 <pubDate>Thu, 27 Sep 2007 17:46:07 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 41865 at http://www.newlc.com</guid>
</item>
<item>
 <title>How can it be wrong?</title>
 <link>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format#comment-41863</link>
 <description>&lt;p&gt;Is a TTime object not always in correct format? Where do you see an incorrect date or time coming from?&lt;/p&gt;

&lt;p&gt;I don&#039;t think the UI controls for date and time will allow the user to input something wrong and will give back this wrong value to your program.&lt;/p&gt;</description>
 <pubDate>Thu, 27 Sep 2007 16:30:17 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 41863 at http://www.newlc.com</guid>
</item>
<item>
 <title>How 2 chk TTime object contains date &amp; time in correct format</title>
 <link>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format</link>
 <description>&lt;p&gt;Hi Guyes ,&lt;/p&gt;

&lt;p&gt;How Should I chk TTime object contains date &amp; time in correct format .&lt;/p&gt;

&lt;p&gt;My Requirement :&lt;/p&gt;

&lt;p&gt;User give me TTime object ,&lt;br /&gt;
Now I have 2 chk TTime object 4 its correctness &amp;&lt;br /&gt;
Execute some function &lt;/p&gt;

&lt;p&gt;Thanks 4 Ur replay&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/forum/how-2-chk-ttime-object-contains-date-time-correct-format#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Thu, 27 Sep 2007 16:08:57 +0200</pubDate>
 <dc:creator>sameer.chaudhari</dc:creator>
 <guid isPermaLink="false">19103 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
