Hunny Software Library Reference

DateTime.SetValuesLocal Method 

Sets the date-time value as specified, assuming local time.

[Visual Basic]
Public Sub SetValuesLocal( _
   ByVal year As Integer, _
   ByVal month As Integer, _
   ByVal day As Integer, _
   ByVal hour As Integer, _
   ByVal minute As Integer, _
   ByVal second As Integer _
)
[C#]
public void SetValuesLocal(
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second
);

Parameters

year
four digit year (e.g. 2001)
month
month (1 <= month <= 12)
day
day of month (1 <= day <= 31)
hour
hour (0 <= hour <= 23)
minute
minute (0 <= minute <= 59)
second
second (0 <= second <= 60)

Remarks

Use this method to create the internal date-time representation in local time. Time zone information is obtained from the local system, based on the values specified.

Note that when the local system is set up to recognize daylight time, there is an ambiguity during the overlap time period that occurs when the local time clock is set back. During this overlap period, it is impossible to determine whether the time zone offset should be the standard zone offset or the daylight time zone offset. This ambiguity is probably not a problem for most applications. If it is a problem, then the work around is to use SetValuesLiteral() to specify the precise time zone offset.

See Also

DateTime Class | Hunny.Mime Namespace | SetValuesLiteral