]>
git.ipfire.org Git - thirdparty/cups.git/blob - scripting/java/src/com/easysw/cups/IPPCalendar.java
1 package com
.easysw
.cups
;
3 * @version 1.00 06-NOV-2002
4 * @author Easy Software Products
6 * Internet Printing Protocol definitions for the Common UNIX Printing
9 * Copyright 1997-2002 by Easy Software Products.
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
18 * Attn: CUPS Licensing Information
19 * Easy Software Products
20 * 44141 Airport View Drive, Suite 204
21 * Hollywood, Maryland 20636-3111 USA
23 * Voice: (301) 373-9603
24 * EMail: cups-info@cups.org
25 * WWW: http://www.cups.org
29 * An <code>IPPCalendar</code> object is used for date/time conversion.
38 class IPPCalendar
extends GregorianCalendar
41 * Get the time in milliseconds from the <code>GregorianCalendar</code>
44 * @return <code>long</code> Time in milliseconds of a date.
46 public long getTimeInMillis()
48 return(super.getTimeInMillis());
52 * Get the unix time in seconds from the <code>GregorianCalendar</code>
55 * @return <code>int</code> Unix Time in seconds of a date.
57 public int getUnixTime()
59 return( (int)(getTimeInMillis() / 1000) );