зеркало из https://github.com/mozilla/pjs.git
OS/2 build bustage from 338732
This commit is contained in:
Родитель
e7fba5faea
Коммит
656d7ee329
|
@ -51,7 +51,7 @@ nsresult nsDateTimeFormatOS2::FormatTime(nsILocale* locale,
|
|||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const time_t timetTime,
|
||||
nsString &stringOut)
|
||||
nsAString &stringOut)
|
||||
{
|
||||
return FormatTMTime(locale, dateFormatSelector, timeFormatSelector, localtime( &timetTime ), stringOut);
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale,
|
|||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const struct tm* tmTime,
|
||||
nsString &stringOut)
|
||||
nsAString &stringOut)
|
||||
{
|
||||
|
||||
nsresult rc = NS_ERROR_FAILURE;
|
||||
|
@ -177,7 +177,7 @@ nsresult nsDateTimeFormatOS2::FormatPRTime(nsILocale* locale,
|
|||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const PRTime prTime,
|
||||
nsString& stringOut)
|
||||
nsAString& stringOut)
|
||||
{
|
||||
PRExplodedTime explodedTime;
|
||||
PR_ExplodeTime(prTime, PR_LocalTimeParameters, &explodedTime);
|
||||
|
@ -190,7 +190,7 @@ nsresult nsDateTimeFormatOS2::FormatPRExplodedTime(nsILocale* locale,
|
|||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const PRExplodedTime* explodedTime,
|
||||
nsString& stringOut)
|
||||
nsAString& stringOut)
|
||||
{
|
||||
struct tm tmTime;
|
||||
/* be safe and set all members of struct tm to zero
|
||||
|
|
|
@ -49,28 +49,28 @@ class nsDateTimeFormatOS2 : public nsIDateTimeFormat {
|
|||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const time_t timetTime,
|
||||
nsString& stringOut);
|
||||
nsAString& stringOut);
|
||||
|
||||
// performs a locale sensitive date formatting operation on the struct tm parameter
|
||||
NS_IMETHOD FormatTMTime(nsILocale* locale,
|
||||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const struct tm* tmTime,
|
||||
nsString& stringOut);
|
||||
nsAString& stringOut);
|
||||
|
||||
// performs a locale sensitive date formatting operation on the PRTime parameter
|
||||
NS_IMETHOD FormatPRTime(nsILocale* locale,
|
||||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const PRTime prTime,
|
||||
nsString& stringOut);
|
||||
nsAString& stringOut);
|
||||
|
||||
// performs a locale sensitive date formatting operation on the PRExplodedTime parameter
|
||||
NS_IMETHOD FormatPRExplodedTime(nsILocale* locale,
|
||||
const nsDateFormatSelector dateFormatSelector,
|
||||
const nsTimeFormatSelector timeFormatSelector,
|
||||
const PRExplodedTime* explodedTime,
|
||||
nsString& stringOut);
|
||||
nsAString& stringOut);
|
||||
|
||||
nsDateTimeFormatOS2() {}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче