Code example for TimeZone

Methods: getOffset

0
	 * @param aTZ 
	 *            time zone 
	 */ 
	public PersonIdent(final String aName, final String aEmailAddress,
			final Date aWhen, final TimeZone aTZ) {
		this(aName, aEmailAddress, aWhen.getTime(), aTZ.getOffset(aWhen
				.getTime()) / (60 * 1000));
	} 
 
	/** 
	 * Copy a PersonIdent, but alter the clone's time stamp 
	 * 
	 * @param pi 
	 *            original {@link PersonIdent} 
	 * @param aWhen 
	 *            local time stamp 
	 * @param aTZ 
	 *            time zone 
	 */ 
	public PersonIdent(final PersonIdent pi, final long aWhen, final int aTZ) {
		this(pi.getName(), pi.getEmailAddress(), aWhen, aTZ);