您请求访问的页面目前没有您的语言版本。您可以从页面底部选择其他语言,或使用 Google Chrome 的内置翻译功能将网页内容即时翻译成您选择的语言。

SECOND()

Second of minute from Duration

Returns the number of seconds explicitly specified if identifiable, or 0 if a second is not found.

Sample usage

SECOND("007:14:21") returns 21

SECOND(TIMENOW() - "00:00:00") returns seconds since the top of the minute; the current second of the minute. See also: TIMENOW()

Seconds in Duration

SECOND() merely extracts the seconds component from a Duration value; it does not compute the number of seconds the Duration value represents in total. To compute the total seconds comprising a Duration value, use TOTALSECONDS().

Common problems

SECOND(NOW()) (or any DateTime or Time value in place of NOW()) causes Expression Assistant to complain, Parameter 1 of function SECOND is of the wrong type. The argument must be a Duration value, not a DateTime or Time value. To fix, convert a DateTime value to a Time value with TIME(), then subtract a zero time to convert a Time value to a Duration value: SECOND(TIME(NOW()) - "00:00:00"). See also: NOW(), TIME()

Syntax

SECOND(duration)

  • duration - A Duration value.

Notes

SECOND(...) is equivalent to (NUMBER(INDEX(SPLIT(TEXT(...), ":"), 3)) + 0) when ... is a Time value. See also: INDEX(), NUMBER(), SPLIT(), TEXT()

See also

Date and time expressions

HOUR()

MINUTE()

Was this helpful?

How can we improve it?
true
Search
Clear search
Close search
Main menu
17453275769961385336
true
Search Help Center
false
true
true
true
false
false
false
false
false
⌂ 换网址