PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The following functions are used to manage the dates and times via an prefixed syntax:
<Chrono>. EndStops a stopwatch and returns the time passed (in milliseconds) since the start of timing (call to <Chrono>.Start).
<Chrono>.PausePauses a stopwatch in order to measure the time spent on a process.
<Chrono>.ResetStops and resets an existing stopwatch to zero.
<Chrono>.ResumeResumes a stopwatch previously stopped by <Chrono>.Fin or <Chrono>.Pause.
<Chrono>.StartStarts a stopwatch to find out the duration of a process (in milliseconds) and resets an existing stopwatch.
<Date type>.ToDayReturns the day corresponding to a given date.
<Date type>.ToDayInAlphaReturns the spelled-out day of the week corresponding to the specified date.
<Date type>.ToIntegerTransforms a date into an integer.
<Date type>.ToMonthInAlphaSpells out the month corresponding to the specified date.
<Date type>.ToStringFormats:
  • the specified date to the specified format.
  • the specified date time to the specified format.
<Date type>.ToWeekNumberReturns the number of the week corresponding to the specified date.
<DateTime type>.ToEpochConverts a local date-time to the Epoch format (number of time units from 01/01/1970 at 00h00 UTC).
<DateTime type>.ToRealConverts a date and time into an 8-byte real.
<Duration type>.ToStringFormats the specified duration into the specified format.
Related Examples:
Management of dates Unit examples (WEBDEV): Management of dates
[ + ] This example presents the use of the Date type of WLanguage and the use of the functions for handling the dates.
Calculating the date of Easter and an age Unit examples (WINDEV): Calculating the date of Easter and an age
[ + ] Calculating the date of Easter for a given year and calculating the age of a person at a given date.
The Chrono functions Unit examples (WINDEV): The Chrono functions
[ + ] Using the ChronoXXX functions.
These functions are used to calculate the time passed between the start (ChronoStart) and the end (ChronoEnd).
Management of dates Unit examples (WINDEV): Management of dates
[ + ] Using the Date type of WLanguage and the functions for handling dates.
Calculations on durations Unit examples (WINDEV): Calculations on durations
[ + ] Calculations on dates and times with the WLanguage functions:
- Calculate the duration between two moments (dates and times)
- Calculate a sum of durations
- Calculate an average of durations
WD Evaluation period Training (WINDEV): WD Evaluation period
[ + ] This example explains how to limit the use of an application to a given period (evaluation period).
The following topics are presented in this example:
1/ the protection of an application for a given duration
2/ the management of the registry

Summary of the example supplied with WINDEV:
When this example is started for the first time, it is activated for an evaluation period set to 5 days.
The information regarding the date when it was first started is stored in the registry and a control key is used to check whether this date was not modified by the end user. At the end of the evaluation period, the application is locked, unless the end user provides the code for unlocking the application
The Chrono functions Unit examples (WINDEV Mobile): The Chrono functions
[ + ] Using the WLanguage "Chrono" functions.
These functions are used to calculate the time passed between the start (ChronoStart) and the end (ChronoEnd).
UWA Stopwatch Universal Apps (WINDEV Mobile): UWA Stopwatch
[ + ] This example explains how to create a stopwatch for a mobile device with WINDEV Mobile.
In this example, a timer is used to display the hands of the stopwatch and to display the time passed on a regular basis.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment