]>
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
6 * Internet Printing Protocol definitions for the Common UNIX Printing
9 * Copyright 2007 by Apple Inc.
10 * Copyright 1997-2002 by Easy Software Products.
12 * These coded instructions, statements, and computer programs are the
13 * property of Apple Inc. and are protected by Federal copyright
14 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
15 * which should have been included with this file. If this file is
16 * file is missing or damaged, see the license at "http://www.cups.org/".
20 * An <code>IPPCalendar</code> object is used for date/time conversion.
29 class IPPCalendar
extends GregorianCalendar
32 * Get the time in milliseconds from the <code>GregorianCalendar</code>
35 * @return <code>long</code> Time in milliseconds of a date.
37 public long getTimeInMillis()
39 return(super.getTimeInMillis());
43 * Get the unix time in seconds from the <code>GregorianCalendar</code>
46 * @return <code>int</code> Unix Time in seconds of a date.
48 public int getUnixTime()
50 return( (int)(getTimeInMillis() / 1000) );