'Type TIME_ZONE_INFORMATION
' Bias As Long
' StandardName As String * 64
' StandardDate As SYSTEMTIME
' StandardBias As Long
' DaylightName As String * 64
' DaylightDate As SYSTEMTIME
' DaylightBias As Long
'End Type
Of this information above...
How does one calculate where we are in the year in relation to whether you are on Daylight savings time or not.
This is for the NIST emulation function I am making
According to NIST you must:
TT is a two digit code (00 to 99) that indicates whether the United States is on Standard Time (ST) or Daylight Saving Time (DST). It also indicates when ST or DST is approaching. This code is set to 00 when ST is in effect, or to 50 when DST is in effect. During the month in which the time change actually occurs, this number will decrement every day until the change occurs. For example, during the month of October, the U.S. changes from DST to ST. On October 1, the number will change from 50 to the actual number of days until the time change. It will decrement by 1 every day until the change occurs at 2 a.m. local time when the value is 1. Likewise, the spring change is at 2 a.m. local time when the value reaches 51.
So that's what I am trying to accomplish
Scott
-------------
Scott
mailto:[email protected][email protected]</A>
' Bias As Long
' StandardName As String * 64
' StandardDate As SYSTEMTIME
' StandardBias As Long
' DaylightName As String * 64
' DaylightDate As SYSTEMTIME
' DaylightBias As Long
'End Type
Of this information above...
How does one calculate where we are in the year in relation to whether you are on Daylight savings time or not.
This is for the NIST emulation function I am making
According to NIST you must:
TT is a two digit code (00 to 99) that indicates whether the United States is on Standard Time (ST) or Daylight Saving Time (DST). It also indicates when ST or DST is approaching. This code is set to 00 when ST is in effect, or to 50 when DST is in effect. During the month in which the time change actually occurs, this number will decrement every day until the change occurs. For example, during the month of October, the U.S. changes from DST to ST. On October 1, the number will change from 50 to the actual number of days until the time change. It will decrement by 1 every day until the change occurs at 2 a.m. local time when the value is 1. Likewise, the spring change is at 2 a.m. local time when the value reaches 51.
So that's what I am trying to accomplish

Scott
-------------
Scott
mailto:[email protected][email protected]</A>
Comment