Date and Time Functions

Prev Next

Introduction

B4P provides some powerful functions to process date and time information (particularly the variable type date) as well as stopwatch functions. The sections are:

The following important date functions are found in the section Type Conversion Functions and convert data of other types, e.g. strings, to dates.:




Procedures and Functions Provided:


Check if value contains date or time:
    date inside
    time inside

Date info functions:
    day
    month
    quarter
    year
    day of year

date info functions:
    serial date

weekday from date:
    weekday
    week

financial quarter, fiscal quarter:
    fq

financial year, fiscal year:
    fy
    reschedule

Time Info Functions:
    hour
    minute
    second

Stopwatch functions:
    watch continue
    watch read
    watch reset
    watch start
    watch stop

Sleep and wait functions:
    sleep
    sleep countdown
    sleep until
    sleep until countdown
    wait until
    wait until countdown
    wait
    wait countdown