mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 22:09:32 +00:00
Checked in patch #162945 for bug 220075:Make task start date/due date optional
(Adds IsSet to oeDateTime interface)
This commit is contained in:
parent
8ab7eaf00c
commit
0cef8b0a0f
@ -201,7 +201,13 @@ NS_IMETHODIMP oeDateTimeImpl::SetTimeInTimezone( PRTime ms, const char *tzid )
|
||||
|
||||
NS_IMETHODIMP oeDateTimeImpl::Clear()
|
||||
{
|
||||
m_datetime = icaltime_null_time();
|
||||
m_datetime = icaltime_null_time();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP oeDateTimeImpl::GetIsSet(PRBool *retval)
|
||||
{
|
||||
*retval = ! icaltime_is_null_time(m_datetime);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,7 @@ interface oeIDateTime : nsISupports
|
||||
attribute short minute;
|
||||
attribute boolean utc;
|
||||
readonly attribute string tzID;
|
||||
readonly attribute boolean isSet;
|
||||
PRTime getTime();
|
||||
void setTime( in PRTime ms );
|
||||
void setTimeInTimezone( in PRTime ms, in string tzID );
|
||||
|
Loading…
x
Reference in New Issue
Block a user