]> git.ipfire.org Git - thirdparty/cups.git/blob - scripting/java/src/com/easysw/cups/IPPCalendar.java
Load cups into easysw/current.
[thirdparty/cups.git] / scripting / java / src / com / easysw / cups / IPPCalendar.java
1 package com.easysw.cups;
2 /**
3 * @version 1.00 06-NOV-2002
4 * @author Easy Software Products
5 *
6 * Internet Printing Protocol definitions for the Common UNIX Printing
7 * System (CUPS).
8 *
9 * Copyright 1997-2002 by Easy Software Products.
10 *
11 * These coded instructions, statements, and computer programs are the
12 * property of Easy Software Products and are protected by Federal
13 * copyright law. Distribution and use rights are outlined in the file
14 * "LICENSE.txt" which should have been included with this file. If this
15 * file is missing or damaged please contact Easy Software Products
16 * at:
17 *
18 * Attn: CUPS Licensing Information
19 * Easy Software Products
20 * 44141 Airport View Drive, Suite 204
21 * Hollywood, Maryland 20636-3111 USA
22 *
23 * Voice: (301) 373-9603
24 * EMail: cups-info@cups.org
25 * WWW: http://www.cups.org
26 */
27
28 /**
29 * An <code>IPPCalendar</code> object is used for date/time conversion.
30 *
31 * @author TDB
32 * @version 1.0
33 * @since JDK1.3
34 */
35
36 import java.util.*;
37
38 class IPPCalendar extends GregorianCalendar
39 {
40 /**
41 * Get the time in milliseconds from the <code>GregorianCalendar</code>
42 * class.
43 *
44 * @return <code>long</code> Time in milliseconds of a date.
45 */
46 public long getTimeInMillis()
47 {
48 return(super.getTimeInMillis());
49 }
50
51 /**
52 * Get the unix time in seconds from the <code>GregorianCalendar</code>
53 * class.
54 *
55 * @return <code>int</code> Unix Time in seconds of a date.
56 */
57 public int getUnixTime()
58 {
59 return( (int)(getTimeInMillis() / 1000) );
60 }
61
62 } // end of class