datetime - Is there a function in c# which returns date&time when given GMT values(-12 to -1 and 1 to 12)? -


Is there a function in C # that gives the GMT values ​​(-12 to -1 and 1 to 12) and Gives time?

Edit:

I have a dropdownlistbox that contains all GMT pricing. Now I want to display the date and time of a selected GMT value. Am .. ..

GMT is Greenwich Mean Time, is not it? Or better known as UTC?

I think that you are talking about UTC offset

In other words, the offset has been given by GMT, what is the time of that place ?

I think this is

  date time. Specify the quad (datetime .Utcano + new timepace (offsethors, 0,0), datetimecund. Local time); Except for  

, this is not really true, because the "type" of that time will be local, which means where the computer is now which you really want It is a date timbered with a specific timezone. Also see the TzTimeZone class which is included in the Public Domain project on Codex.

The system. As timezones are included in .NET 2.0, no time zone object allows an application to instantiate the timezone's short-end name, or UTC offset. Instead, the system. Timezone class "knows" about the local timezone but does nothing more than it is difficult to take in arbitrary time (3:13 pm, October 4, 2006, in Los Angeles) and it is formatted to appear arbitrarily in other timezones Does (say, Paris).

The TzTimeZone class provides a model for many different timezones, including the UTC rules applicable to their offset and daylight saving time.

With the set of this new classes, it is also easy to format the known set time value w.r.t, with a well timed-named examples. It is easy to format any arbitrary (nominated) time zone, especially in Los Angeles (3:13 pm to 4 October 2006) and display in Paris.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -