pl.mbdev.openstage
Class XmlDate

java.lang.Object
  extended by pl.mbdev.openstage.XmlDate

public abstract class XmlDate
extends java.lang.Object

Defines the date and time formats used by the OpenStage phones.

 Copyright 2011 Mateusz Bysiek,
     mb@mbdev.pl, http://mbdev.pl/
 
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
     http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 

Author:
Mateusz Bysiek

Constructor Summary
private XmlDate()
          Private constructor, this is an utility class.
 
Method Summary
static java.lang.String getDate(java.util.Calendar cal)
          From the calendar object provided, gets the date in the OpenStage format.
static java.lang.String getTime(java.util.Calendar cal)
          From the calendar object provided, gets the time in the OpenStage format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDate

private XmlDate()
Private constructor, this is an utility class.

Method Detail

getDate

public static java.lang.String getDate(java.util.Calendar cal)
From the calendar object provided, gets the date in the OpenStage format.

Parameters:
cal - a Calendar object
Returns:
date in YYYY-MM-DD format

getTime

public static java.lang.String getTime(java.util.Calendar cal)
From the calendar object provided, gets the time in the OpenStage format.

Parameters:
cal - a Calendar object
Returns:
time in HH:MM:SS.mmm format