Advertisement
Advertisement
| 12.06.2007 at 03:11AM PST, ID: 23005637 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 12.06.2007 at 05:10AM PST, ID: 20419175 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: |
Public Function DateAddTimeZoneDiff( _
ByVal datLocal As Date, _
ByVal lngLocalBias, _
ByVal lngRemoteBias) _
As Date
' Calculates the date/time of datLocal in a remote time zone.
' Adds the difference in minutes between the local time zone bias and
' the remote time zone bias, if both bias are relative to UTC.
'
' Examples:
'
' datRemote = DateAddTimeZoneDiff(Now(), 60, -600)
' will return datRemote as eleven hours ahead of local time.
'
' datRemote = DateAddTimeZoneDiff(Now(), -600, 60)
' will return datRemote as eleven hours behind local time.
'
' 2000-05-30. Cactus Data ApS, CPH.
' 2005-01-25. Adjusted to accommodate change in TimeZoneBiasDiff().
Dim datRemote As Date
Dim lngBias As Long
' Get difference (in minutes) in time zone bias.
lngBias = TimeZoneBiasDiff(lngLocalBias, lngRemoteBias)
' Calculate remote date/time.
datRemote = DateAdd("n", lngBias, datLocal)
DateAddTimeZoneDiff = datRemote
End Function
Public Function TimeZoneBiasDiff( _
ByVal lngLocalTimeBias As Long, _
ByVal lngRemoteTimeBias As Long) _
As Long
' Calculates the difference in minutes between two time zones,
' typically from the local time zone to the remote time zone.
' Both time zones must be expressed by their bias relative to
' UTC (Coordinated Universal Time) which is measured in minutes.
'
' 2000-05-30. Cactus Data ApS, CPH.
' 2005-01-25. Output reversed to express bias value.
' Minimum amount of minutes for a time zone bias.
Const clngTimeZoneBiasMin As Long = 15
Dim lngTimeZoneBiasDiff As Long
' Round off time zone bias by minimum time zone difference.
lngLocalTimeBias = lngLocalTimeBias \ clngTimeZoneBiasMin
lngLocalTimeBias = lngLocalTimeBias * clngTimeZoneBiasMin
lngRemoteTimeBias = lngRemoteTimeBias \ clngTimeZoneBiasMin
lngRemoteTimeBias = lngRemoteTimeBias * clngTimeZoneBiasMin
' Calculate difference in time zone bias.
lngTimeZoneBiasDiff = lngLocalTimeBias - lngRemoteTimeBias
TimeZoneBiasDiff = lngTimeZoneBiasDiff
End Function
|
| 12.06.2007 at 07:44PM PST, ID: 20425260 |