1.

Point out the wrong statement.(a) $second returns the seconds for a date as a number between 0 and 60 (leap seconds)(b) $minute returns the minute for a date as a number between 0 and 59(c) $millis returns the milliseconds of a date as a number between 0 and 1000(d) All of the mentionedThis question was posed to me in a national level competition.My question comes from Pipeline Operators in section Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer»

Right choice is (c) $millis RETURNS the milliseconds of a DATE as a NUMBER between 0 and 1000

Easy EXPLANATION: $MILLISECOND returns the milliseconds of a date as a number between 0 and 999.



Discussion

No Comment Found

Related InterviewSolutions