Lines Matching refs:aDateTime
242 static ::rtl::OString makeDateTimeString (const DateTime& aDateTime, sal_Bool bUTC = sal_True) in makeDateTimeString() argument
245 aDateTimeString.append((sal_Int32)aDateTime.GetYear()); in makeDateTimeString()
247 if (aDateTime.GetMonth()<10) aDateTimeString.append("0"); in makeDateTimeString()
248 aDateTimeString.append((sal_Int32)aDateTime.GetMonth()); in makeDateTimeString()
250 if (aDateTime.GetDay()<10) aDateTimeString.append("0"); in makeDateTimeString()
251 aDateTimeString.append((sal_Int32)aDateTime.GetDay()); in makeDateTimeString()
253 if (aDateTime.GetHour()<10) aDateTimeString.append("0"); in makeDateTimeString()
254 aDateTimeString.append((sal_Int32)aDateTime.GetHour()); in makeDateTimeString()
256 if (aDateTime.GetMin()<10) aDateTimeString.append("0"); in makeDateTimeString()
257 aDateTimeString.append((sal_Int32)aDateTime.GetMin()); in makeDateTimeString()
259 if (aDateTime.GetSec()<10) aDateTimeString.append("0"); in makeDateTimeString()
260 aDateTimeString.append((sal_Int32)aDateTime.GetSec()); in makeDateTimeString()
287 DateTime aDateTime; in xforms_nowFunction() local
288 ::rtl::OString aDateTimeString = makeDateTimeString(aDateTime); in xforms_nowFunction()
295 static sal_Bool parseDateTime(const ::rtl::OUString& aString, DateTime& aDateTime) in parseDateTime() argument
332 aDateTime = tmpDateTime; in parseDateTime()
347 DateTime aDateTime; in xforms_daysFromDateFunction() local
348 if (parseDateTime(aString, aDateTime)) in xforms_daysFromDateFunction()
351 sal_Int32 nDays = aDateTime - aReferenceDate; in xforms_daysFromDateFunction()
370 DateTime aDateTime; in xforms_secondsFromDateTimeFunction() local
372 if (parseDateTime(aString, aDateTime)) in xforms_secondsFromDateTimeFunction()
376 sal_Int32 nDays = aDateTime - aReferenceDate; in xforms_secondsFromDateTimeFunction()
378 nSeconds += aDateTime.GetHour() * 60 * 60; in xforms_secondsFromDateTimeFunction()
379 nSeconds += aDateTime.GetMin() * 60; in xforms_secondsFromDateTimeFunction()
380 nSeconds += aDateTime.GetSec(); in xforms_secondsFromDateTimeFunction()