mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 785738 Part 4: Use PRTime where appropriate under rdf/. r=ehsan
This commit is contained in:
parent
3f08ff498e
commit
ab140edff0
@ -244,7 +244,7 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsAString& aResult)
|
||||
|
||||
nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
|
||||
if (dateLiteral) {
|
||||
int64_t value;
|
||||
PRTime value;
|
||||
rv = dateLiteral->GetValue(&value);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
@ -252,7 +252,7 @@ nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsAString& aResult)
|
||||
rv = gFormat->FormatPRTime(nullptr /* nsILocale* locale */,
|
||||
kDateFormatShort,
|
||||
kTimeFormatSeconds,
|
||||
PRTime(value),
|
||||
value,
|
||||
str);
|
||||
aResult.Assign(str);
|
||||
|
||||
|
@ -36,7 +36,7 @@ interface nsIRDFDate : nsIRDFNode {
|
||||
/**
|
||||
* The date value of the literal
|
||||
*/
|
||||
readonly attribute long long Value;
|
||||
readonly attribute PRTime Value;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -41,7 +41,7 @@ interface nsIRDFService : nsISupports {
|
||||
/**
|
||||
* Construct an RDF literal from a PRTime.
|
||||
*/
|
||||
nsIRDFDate GetDateLiteral(in long long aValue);
|
||||
nsIRDFDate GetDateLiteral(in PRTime aValue);
|
||||
|
||||
/**
|
||||
* Construct an RDF literal from an int.
|
||||
|
Loading…
Reference in New Issue
Block a user