ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

C# TimeZoneInfo Class Programs

A time zone is a geographical region in which the same time is used. In C#.Net, the TimeZoneInfo class is a part of the System collection and it is used to represent any time zone in the world.

This section contains the solved C# TimeZoneInfo Class Programs. Practice these programs to learn the concept of time zones and converting the times b/w Coordinated Universal Time (UTC) and local time, outputs, and the detailed explanation of the statements, functions used in the C# TimeZoneInfo Class Programs.

List of C# TimeZoneInfo Class Programs

  1. C# program to get the local time zone (TimeZoneInfo.Local Property)
  2. C# program to get the difference between local time zone and UTC (Coordinated Universal Time)
  3. C# program to get the display name for the current time zone's daylight saving time (TimeZoneInfo.DaylightName Property)
  4. C# program to get the DisplayName of local time zone (TimeZoneInfo.DisplayName Property)
  5. C# program for TimeZoneInfo.Id property & TimeZoneInfo.GetSystemTimeZones() method
  6. C# program to get the standard time zone name (TimeZone.StandardName Property)
  7. C# program for TimeZoneInfo.SupportsDaylightSavingTime Property
  8. C# program to get the Coordinated Universal Time (UTC) zone (TimeZoneInfo.Utc Property)
  9. C# program to get the system time by Zone Id
  10. C# program to convert a time to the time in a particular time zone (TimeZoneInfo.ConvertTime() Method)
  11. C# program to clear cached time zone data (TimeZoneInfo.ClearCachedData() Method)
  12. C# program to define a time zone that is not found on the local computer (TimeZoneInfo.CreateCustomTimeZone() Method)
  13. C# program to determine whether two TimeZoneInfo objects are equal (TimeZoneInfo.Equals() Method)
  14. C# program to get the hash code of the time zone (TimeZoneInfo.GetHashCode() Method)
  15. C# program to get a sorted collection of all the time zones (TimeZoneInfo.GetSystemTimeZones() Method)
  16. C# program to calculate the offset between the time in this time zone and UTC (TimeZoneInfo.GetUtcOffset() Method)
  17. C# program to check whether a date and time in a particular time zone is ambiguous (TimeZoneInfo.IsAmbiguousTime() Method)
  18. C# program to get the ambiguous time offsets (TimeZoneInfo.GetAmbiguousTimeOffsets() Method)
  19. C# program to determine given date and time is daylight saving time or not (TimeZoneInfo.IsDaylightSavingTime() Method)
ADVERTISEMENT




Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.