Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.pojava.datetime;
import java.text.DateFormatSymbols;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
/*
Copyright 2010 John Pile
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.
*/
/**
* DateTimeFormat formats a DateTime object as a String according to a template. This class
* provides similar functionality to Java's SimpleDateFormat class, with some notable
* differences. It changes the meaning of the "S" character from "millisecond" to
* "fractional second" so that, for example, nine consecutive "S" characters would represent
* nanoseconds, while three "S" characters represent milliseconds. The upper-case "G" still
* represents "BC" or "AD", but I added a lower-cased "g" to the format to use "BCE" or "CE".
* While "Z" still shows time zone offset as "-HHmm", "ZZ" will add a colon, as "-HH:mm".
*
* Because it does not "compile" the format String, DateTimeFormat can provide a static method
* with the same performance as a constructed object. It does allow a constructed object for
* similar behavior to existing formatters, but there is no performance advantage in doing so.
* In either case, this class is thread-safe, provided your application is not trying to
* change the internals of Java's TimeZone object as you're using it.
*
* It is important to understand that the default behavior is to format the output according to
* the system's time zone. If you want to format the output according to the DateTime object's
* internal time zone, then pass the time zone as a parameter. For example,
*
*