BAP Online Manuals : Library Reference : Library by Name : time
Previous: telling
Next: told

6.2.131. time

returns the time of the day in seconds

SYNOPSIS

INCLUDE 'iolib.h'
time(Time)

SYNTAX

time(Time) (o)

ARGUMENTS

integer(Time) (o) Seconds since midnight

DESCRIPTION

Returns the current time from the host server. The time is measured in seconds from midnight, thus giving each day a new chance.

EXAMPLE

time(Time),
M is Time / 60,
Sec is Time mod 60,
Hour is M / 60,
Minute is M mod 60.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

(none)


BAP Online Manuals : Library Reference : Library by Name : time
Previous: telling
Next: told