diff -r 48780e181b38 -r 578be2adaf3e Symbian3/PDK/Source/GUID-8538B61F-E4AD-5467-9F9A-EE8EA5008140.dita --- a/Symbian3/PDK/Source/GUID-8538B61F-E4AD-5467-9F9A-EE8EA5008140.dita Tue Jul 20 12:00:49 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-8538B61F-E4AD-5467-9F9A-EE8EA5008140.dita Fri Aug 13 16:47:46 2010 +0100 @@ -1,30 +1,30 @@ - - - - - -How -to format the date and timeFormat the date with locale-dependent settings, including the date -separator characters, and format date as European, American or Japanese -

Use TTime::FormatL() to format the locale-dependent -aspects of the time, including the time separator characters, whether a 12 -or 24 hour clock is to be used, and whether am/pm text should be located before -or after the time.

-TTime homeTime; -TBuf<32> buf; - -// get home time and format it locale dependently -homeTime.HomeTime(); - -_LIT(KFormatTxt,"%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S%:3%+B"); -homeTime.FormatL(buf,KFormatTxt); - -// This gives 19/05/1997 9:44:51 am, assuming 12 hour clock with -// trailing am/pm text, am/pm space between, and European date format + + + + + +How +to format the date and timeFormat the date with locale-dependent settings, including the date +separator characters, and format date as European, American or Japanese +

Use TTime::FormatL() to format the locale-dependent +aspects of the time, including the time separator characters, whether a 12 +or 24 hour clock is to be used, and whether am/pm text should be located before +or after the time.

+TTime homeTime; +TBuf<32> buf; + +// get home time and format it locale dependently +homeTime.HomeTime(); + +_LIT(KFormatTxt,"%/0%1%/1%2%/2%3%/3 %-B%:0%J%:1%T%:2%S%:3%+B"); +homeTime.FormatL(buf,KFormatTxt); + +// This gives 19/05/1997 9:44:51 am, assuming 12 hour clock with +// trailing am/pm text, am/pm space between, and European date format
\ No newline at end of file