Sharpen.DateFormat.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
		static NativeDate()
		{
			isoFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
			isoFormat.SetTimeZone(new SimpleTimeZone(0, "UTC"));
			isoFormat.SetLenient(false);
		}