Internationalization and localization tools


C# Date/Time Formatting

using System

public DateTimeOffset(DateTime dateTime);

public DateTimeOffset(DateTime dateTime, TimeSpan offset);

public DateTimeOffset(long ticks, TimeSpan offset);

public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, TimeSpan offset);

public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, TimeSpan offset);

public DateTimeOffset(int year, int month, int day, int hour, int minute, int second, int millisecond, Calendar calendar, TimeSpan offset);

Internationalization (I18n) Structure Overview

The DateTimeOffset constructor initializes a new instance of the DateTimeOffset structure.

See Microsoft's MSDN online documentation for more information.

I18n Issues

Although a DateTimeOffset value includes an offset, it is not a fully time zone-aware data structure. While an offset from UTC is one characteristic of a time zone, it does not unambiguously identify a time zone. Not only do multiple time zones share the same offset from UTC, but the offset of a single time zone changes if it observes daylight saving time. This means that, as soon as a DateTimeOffset value is disassociated from its time zone, it can no longer be unambiguously linked back to its original time zone.

General C# date/time formatting information

 

Lingoport internationalization and localization services and software