source: umon/main/common/date.h @ 87db514

Last change on this file since 87db514 was 87db514, checked in by Amar Takhar <amar@…>, on 04/16/15 at 19:26:21

Initial commit of the umon repository.

Prior to this three changes were made:

  • Remove umon_ prefix from parent directories.
  • Collapse main/target/ into main/
  • Remove ports/template/flashtest.scr.ucon script.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**************************************************************************
2 *
3 * Copyright (c) 2013 Alcatel-Lucent
4 *
5 * Alcatel Lucent licenses this file to You under the Apache License,
6 * Version 2.0 (the "License"); you may not use this file except in
7 * compliance with the License.  A copy of the License is contained the
8 * file LICENSE at the top level of this repository.
9 * You may also obtain a copy of the License at:
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 **************************************************************************
20 *
21 * date.h
22 *
23 * Original author:     Ed Sutter (ed.sutter@alcatel-lucent.com)
24 *
25 */
26struct todinfo {
27        char day;               /* 1-7 (sun = 1) */
28        char date;              /* 1-31 */
29        char month;             /* 1-12 */
30        char hour;              /* 0-23 */
31        char minute;    /* 0-59 */
32        char second;    /* 0-59 */
33        short year;             /* full number (i.e. 2006) */
34};
35
36extern int      showDate(int center);
37extern int      timeofday(int cmd, void *arg);
38extern int      setTimeAndDate(struct todinfo *now);
39extern int      getTimeAndDate(struct todinfo *now);
40
41/* #defines used by the uMon API mon_timeofday()...
42 */
43#define TOD_ON          1
44#define TOD_OFF         2
45#define TOD_SET         3
46#define TOD_GET         4
Note: See TracBrowser for help on using the repository browser.