Hunny Software Library Reference

DateTime.SetValuesLiteral Method 

Sets the date-time value as specified.

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

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)
zoneOffset
difference in minutes between local time and UTC (-720 <= zoneOffset <= 720), e.g. zoneOffset=-300 for US Eastern Standard Time (New York City)

Remarks

Use this method to create the internal date-time representation in any time zone. The values are used "as is" without any additional interpretation.

zoneOffset is the offset in minutes from Coordinated Universal Time (UTC). For example, the correct value for US Eastern Standard Time (e.g. New York City) is -300, since 12:00 UTC equals 7:00 EST, a difference of 300 minutes.

See Also

DateTime Class | Hunny.Mime Namespace | SetValuesLocal