summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-03-17 08:36:26 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-04-18 21:34:46 +0200
commit9830fd36dbdb72c79703b0c61efc027fba793c5a (patch)
tree2e9d698e6ca109dc6627adb5c84aa2b635bcfe92 /offapi
parent5aaaf0694b6e3213685563fc3bc90d19b10f5c75 (diff)
date/time IDL datatypes incompatible change
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/util/Date.idl2
-rw-r--r--offapi/com/sun/star/util/DateTime.idl9
-rw-r--r--offapi/com/sun/star/util/DateTimeRange.idl13
-rw-r--r--offapi/com/sun/star/util/Duration.idl4
-rw-r--r--offapi/com/sun/star/util/Time.idl4
-rw-r--r--offapi/type_reference/types.rdbbin7439872 -> 7439360 bytes
6 files changed, 17 insertions, 15 deletions
diff --git a/offapi/com/sun/star/util/Date.idl b/offapi/com/sun/star/util/Date.idl
index d881fd4077b4..ecbda5a8b307 100644
--- a/offapi/com/sun/star/util/Date.idl
+++ b/offapi/com/sun/star/util/Date.idl
@@ -40,7 +40,7 @@ published struct Date
/** contains the year.
*/
- unsigned short Year;
+ short Year;
};
diff --git a/offapi/com/sun/star/util/DateTime.idl b/offapi/com/sun/star/util/DateTime.idl
index 11f672ba1f5f..312589f9eb73 100644
--- a/offapi/com/sun/star/util/DateTime.idl
+++ b/offapi/com/sun/star/util/DateTime.idl
@@ -28,10 +28,9 @@ module com { module sun { module star { module util {
*/
published struct DateTime
{
- /** contains the hundredth seconds (0-99).
+ /** contains the nanoseconds (0 - 999 999 999).
*/
- unsigned short HundredthSeconds;
-
+ unsigned long NanoSeconds;
/** contains the seconds (0-59).
*/
@@ -60,7 +59,9 @@ published struct DateTime
/** is the year.
*/
- unsigned short Year;
+ short Year;
+
+ /** TODO: timezone **/
};
diff --git a/offapi/com/sun/star/util/DateTimeRange.idl b/offapi/com/sun/star/util/DateTimeRange.idl
index 94e005a37c59..b56a0484e494 100644
--- a/offapi/com/sun/star/util/DateTimeRange.idl
+++ b/offapi/com/sun/star/util/DateTimeRange.idl
@@ -28,9 +28,9 @@ module com { module sun { module star { module util {
*/
published struct DateTimeRange
{
- /** contains the start hundredth seconds (0-99) for the range.
+ /** contains the start nanoseconds (0 - 999 999 999) for the range.
*/
- unsigned short StartHundredthSeconds;
+ unsigned long StartNanoSeconds;
/** contains the start seconds (0-59) for the range.
*/
@@ -54,11 +54,11 @@ published struct DateTimeRange
/** contains the start year for the range.
*/
- unsigned short StartYear;
+ short StartYear;
- /** contains the end hundredth seconds (0-99) for the range.
+ /** contains the end nanoseconds (0 - 999 999 999) for the range.
*/
- unsigned short EndHundredthSeconds;
+ unsigned long EndNanoSeconds;
/** contains the end seconds (0-59) for the range.
*/
@@ -82,8 +82,9 @@ published struct DateTimeRange
/** contains the end year for the range.
*/
- unsigned short EndYear;
+ short EndYear;
+ /** TODO timezones **/
};
diff --git a/offapi/com/sun/star/util/Duration.idl b/offapi/com/sun/star/util/Duration.idl
index 6b373ddb853c..519e837fef1a 100644
--- a/offapi/com/sun/star/util/Duration.idl
+++ b/offapi/com/sun/star/util/Duration.idl
@@ -69,9 +69,9 @@ struct Duration
*/
unsigned short Seconds;
- /** contains the milliseconds.
+ /** contains the nanoseconds.
*/
- unsigned short MilliSeconds;
+ unsigned long NanoSeconds;
};
diff --git a/offapi/com/sun/star/util/Time.idl b/offapi/com/sun/star/util/Time.idl
index 51cbd7e6c197..1ac850f31797 100644
--- a/offapi/com/sun/star/util/Time.idl
+++ b/offapi/com/sun/star/util/Time.idl
@@ -28,9 +28,9 @@ module com { module sun { module star { module util {
*/
published struct Time
{
- /** contains the hundredth seconds (0-99).
+ /** contains the nanoseconds (0 - 999 999 999).
*/
- unsigned short HundredthSeconds;
+ unsigned long NanoSeconds;
/** contains the seconds (0-59).
*/
diff --git a/offapi/type_reference/types.rdb b/offapi/type_reference/types.rdb
index f43806a7a4f3..ecd1b60cac58 100644
--- a/offapi/type_reference/types.rdb
+++ b/offapi/type_reference/types.rdb
Binary files differ