Month  Number

Chapter 2: DataWindow Expression Functions

Now

Description

Obtains the current time based on the system time of the client machine.

Syntax

Now ( )

Returns

Time. Returns the current time based on the system time of the client machine.

Usage

Use Now to compare a time to the system time or to display the system time on the screen. The timer interval specified for the DataWindow object or report determines the frequency at which the value of Now is updated. For example, if the timer interval is 1 second, it is updated every second.

Examples

Example 1

This expression returns the current system time:

Now()

Example 2

This expression sets the column value to 8:00 when the current system time is before 8:00 and to the current time if it is after 8:00:

If(Now() < 08:00:00, '08:00:00', String(Now()))

See also





Copyright © 2004. Sybase Inc. All rights reserved. Number

View this book as PDF