Change from UKT start time to my local?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bernard.Mangay

    Change from UKT start time to my local?

    Hi,

    I'm receiving a data feed and trying to parse it in c#.

    One of the time fields is in timezone "UKT". that appears to be 1
    hour ahead of me in London.

    How can I convert the timestamp field from UKT to my local timezone?
    I don't want to just add an hour as the code will fall apart when we
    leave BST.

    Thanks,

    Mangay.
  • Bob Powell [MVP]

    #2
    Re: Change from UKT start time to my local?

    Convert to UTC then use whatever the locale's timezone offset is to
    calculate real time?

    --
    Bob Powell [MVP]
    Visual C#, System.Drawing

    Ramuseco Limited .NET consulting


    Find great Windows Forms articles in Windows Forms Tips and Tricks


    Answer those GDI+ questions with the GDI+ FAQ


    All new articles provide code in C# and VB.NET.
    Subscribe to the RSS feeds provided and never miss a new article.

    "Bernard.Mangay " <fcmisc@googlem ail.comwrote in message
    news:7424fa09-37c6-4b04-af86-125cb502f46c@8g 2000hse.googleg roups.com...
    Hi,
    >
    I'm receiving a data feed and trying to parse it in c#.
    >
    One of the time fields is in timezone "UKT". that appears to be 1
    hour ahead of me in London.
    >
    How can I convert the timestamp field from UKT to my local timezone?
    I don't want to just add an hour as the code will fall apart when we
    leave BST.
    >
    Thanks,
    >
    Mangay.

    Comment

    Working...