com.altova.xml.XmlGMonthDayFormatter Maven / Gradle / Ivy
// XmlGMonthDayFormatter.java
// This file contains generated code and will be overwritten when you rerun code generation.
package com.altova.xml;
import com.altova.CoreTypes;
import com.altova.types.CalendarBase;
import com.altova.types.DateTime;
class XmlGMonthDayFormatter extends XmlFormatter
{
public String format(DateTime dt)
{
String result = "--";
int month = dt.getMonth();
int day = dt.getDay();
result += CoreTypes.formatNumber(month, 2);
result += '-';
result += CoreTypes.formatNumber(day, 2);
if (dt.hasTimezone() != CalendarBase.TZ_MISSING)
result += CoreTypes.formatTimezone(dt.getTimezoneOffset());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy