01: /**
02: * $RCSfile$
03: * $Revision: 5980 $
04: * $Date: 2006-11-07 10:01:52 -0800 (Tue, 07 Nov 2006) $
05: *
06: * Copyright (C) 2004 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.util;
11:
12: /**
13: * Contains constant values representing various objects in Jive.
14: */
15: public class JiveConstants {
16:
17: public static final int SYSTEM = 17;
18: public static final int ROSTER = 18;
19: public static final int OFFLINE = 19;
20: public static final int MUC_ROOM = 23;
21:
22: public static final long SECOND = 1000;
23: public static final long MINUTE = 60 * SECOND;
24: public static final long HOUR = 60 * MINUTE;
25: public static final long DAY = 24 * HOUR;
26: public static final long WEEK = 7 * DAY;
27:
28: /**
29: * Date/time format for use by SimpleDateFormat. The format conforms to
30: * <a href="http://www.xmpp.org/extensions/xep-0082.html">XEP-0082</a>, which defines
31: * a unified date/time format for XMPP.
32: */
33: public static final String XMPP_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
34:
35: /**
36: * Date/time format for use by SimpleDateFormat. The format conforms to the format
37: * defined in <a href="http://www.xmpp.org/extensions/xep-0091.html">XEP-0091</a>,
38: * a specialized date format for historical XMPP usage.
39: */
40: public static final String XMPP_DELAY_DATETIME_FORMAT = "yyyyMMdd'T'HH:mm:ss";
41: }
|