mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 1362817 - Drop the DateTimeFormat::FormatTime(). r=m_kato
MozReview-Commit-ID: JuNaLYhWCHI --HG-- extra : rebase_source : 9bc5379b6ebffdbeb60b24ec57ade115c4f40682
This commit is contained in:
parent
411c90a211
commit
6e075293a5
@ -32,16 +32,6 @@ DateTimeFormat::Initialize()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// performs a locale sensitive date formatting operation on the time_t parameter
|
||||
/*static*/ nsresult
|
||||
DateTimeFormat::FormatTime(const nsDateFormatSelector aDateFormatSelector,
|
||||
const nsTimeFormatSelector aTimeFormatSelector,
|
||||
const time_t aTimetTime,
|
||||
nsAString& aStringOut)
|
||||
{
|
||||
return FormatPRTime(aDateFormatSelector, aTimeFormatSelector, (aTimetTime * PR_USEC_PER_SEC), aStringOut);
|
||||
}
|
||||
|
||||
// performs a locale sensitive date formatting operation on the PRTime parameter
|
||||
/*static*/ nsresult
|
||||
DateTimeFormat::FormatPRTime(const nsDateFormatSelector aDateFormatSelector,
|
||||
|
@ -38,12 +38,6 @@ enum nsTimeFormatSelector : long
|
||||
|
||||
class DateTimeFormat {
|
||||
public:
|
||||
// performs a locale sensitive date formatting operation on the time_t parameter
|
||||
static nsresult FormatTime(const nsDateFormatSelector aDateFormatSelector,
|
||||
const nsTimeFormatSelector aTimeFormatSelector,
|
||||
const time_t aTimetTime,
|
||||
nsAString& aStringOut);
|
||||
|
||||
// performs a locale sensitive date formatting operation on the PRTime parameter
|
||||
static nsresult FormatPRTime(const nsDateFormatSelector aDateFormatSelector,
|
||||
const nsTimeFormatSelector aTimeFormatSelector,
|
||||
|
Loading…
x
Reference in New Issue
Block a user