Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CreateDate - method of object Pm

Description:
Creating the absolute date and time from items or creating the time interval.
Syntax:
CreateDate(nYear As Long, nMonth As Long, nDay As Double, nHour As Double, nMinute As Double, nSecond As Double, nMilli As Long) As Date
Calling:
t = Pm.CreateDate(nYear, nMonth, nDay, nHour, nMinute, nSecond, nMilli)
Parameters:
nYear(Long) Year set as the absolute value, for example 2016. If the method has to return the time internal, then 0 must be set.
nMonth(Long) Month of the year (1-12). If the method has to return the time internal, then 0 must be set.
nDay(Double) If the method has to return the absolute time, then the day of the month (1-31) is set. If the time interval has to be returned, then the number of days is set.
nHour(Double) If the method has to return the absolute time, then the hour of the day (0-23) is set. If the time interval has to be returned, then the number of hours is set.
nMinute(Double) If the method has to return the absolute time, then the minute of the hour (0-59) is set. If the time interval has to be returned, then the number of minutes is set.
nSecond(Double) If the method has to return the absolute time, then the second of the minute (0-59) is set. If the time interval has to be returned, then the number of seconds is set.
nMilli(Long) The number of milliseconds (0-999) is set here.
Note:
The method can also be called in the graphic item events for Web Panels.
Example1:
The absolute time returned by the method is: 22.3.2016 12:30:30.500.
Dim tDate
tDate = Pm.CreateDate(2016, 3, 22, 12, 30, 30, 500)
Example2:
The time interval returned by the method is 42 days, 12 hours and 30 minutes.
Dim tDateInterval
tDateInterval = Pm.CreateDate(0, 0, 42, 12, 30, 0, 0)
Navigation:
 
- Pm
 
- Abs
- Cos
- CreateDate
 
 
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice