1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_util_DateTimeRange_idl__
20 #define __com_sun_star_util_DateTimeRange_idl__
23 module com
{ module sun
{ module star
{ module util
{
26 /** represents a range of date+time values.
28 published
struct DateTimeRange
30 /** contains the start nanoseconds (0 - 999 999 999) for the range.
32 unsigned long StartNanoSeconds
;
34 /** contains the start seconds (0-59) for the range.
36 unsigned short StartSeconds
;
38 /** contains the start minutes (0-59) for the range.
40 unsigned short StartMinutes
;
42 /** contains the start hour (0-23) for the range.
44 unsigned short StartHours
;
46 /** contains the start day of month (1-31 or 0 for a void date) for the range.
48 unsigned short StartDay
;
50 /** contains the start month of year (1-12 or 0 for a void date) for the range.
52 unsigned short StartMonth
;
54 /** contains the start year for the range.
58 /** contains the end nanoseconds (0 - 999 999 999) for the range.
60 unsigned long EndNanoSeconds
;
62 /** contains the end seconds (0-59) for the range.
64 unsigned short EndSeconds
;
66 /** contains the end minutes (0-59) for the range.
68 unsigned short EndMinutes
;
70 /** contains the end hour (0-23) for the range.
72 unsigned short EndHours
;
74 /** contains the end day of month (1-31 or 0 for a void date) for the range.
76 unsigned short EndDay
;
78 /** contains the end month of year (1-12 or 0 for a void date) for the range.
80 unsigned short EndMonth
;
82 /** contains the end year for the range.
86 /** true: time zone is UTC false: unknown time zone.
88 @since LibreOffice 4.1
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */