now()

Read(1998) Label: current system datetime,

Description:

Get the current system datetime.

Syntax:

now()

Note:

The function gets the current system datetime accurate to the millisecond.

Option:

@d

Return the date part only, date type

@t

Return the time part only, time type

@h

Accurate to hour

@m

Accurate to minute

@s

Accurate to second

Return value:

Datetime

Example:

now()

The current system datetime, for example: 2010-07-15 16:10:40

now@d()

The current system date, for example: 2010-07-15

now@t()

The current system time, for example: 16: 10: 40

now@m()

The current system datetime, which is accurate to minute, for example: 2013-12-09 17:05:00:0

now@s()

The current system datetime, which is accurate to second, for example: 2013-12-09 17:05:33:0

now@h()

The current system datetime, which is accurate to hour, for example: 2023-08-15 17:00:00