Sharpen.SimpleDateFormat.SetTimeZone C# (CSharp) Method

SetTimeZone() public method

public SetTimeZone ( TimeZoneInfo timeZone ) : void
timeZone System.TimeZoneInfo
return void
        public void SetTimeZone(TimeZoneInfo timeZone)
        {
            this.timeZone = timeZone;
        }

Usage Example

Example #1
0
		private string Iso(PersonIdent id)
		{
			SimpleDateFormat fmt;
			fmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
			fmt.SetTimeZone(id.GetTimeZone());
			return fmt.Format(id.GetWhen());
		}
All Usage Examples Of Sharpen.SimpleDateFormat::SetTimeZone