Reference
>
Operators
>
Aggregation Framework Operators
>
Date Aggregation Operators
>
$second (aggregation)
$second (aggregation)
¶
$second
¶
Takes a date and returns the second between 0 and 59, but can be 60 to account for leap seconds.
← $minute (aggregation)
$millisecond (aggregation) →
MongoDB Manual
2.4 (current)
Contents
Install MongoDB
MongoDB CRUD Operations
Data Models
Administration
Security
Aggregation
Indexes
Replication
Sharding
Frequently Asked Questions
Reference
Operators
Query and Projection Operators
Update Operators
Aggregation Framework Operators
Pipeline Aggregation Operators
Group Aggregation Operators
Boolean Aggregation Operators
Comparison Aggregation Operators
Arithmetic Aggregation Operators
String Aggregation Operators
Date Aggregation Operators
$dayOfYear (aggregation)
$dayOfMonth (aggregation)
$dayOfWeek (aggregation)
$year (aggregation)
$month (aggregation)
$week (aggregation)
$hour (aggregation)
$minute (aggregation)
$second (aggregation)
$millisecond (aggregation)
Conditional Aggregation Operators
Meta-Query Operators
Database Commands
mongo
Shell Methods
MongoDB Package Components
Exit Codes and Statuses
Connection String URI Format
MongoDB Limits and Thresholds
Glossary
Release Notes
About MongoDB Documentation
Index
Formats
MongoDB Manual, Single HTML Page
MongoDB Manual, PDF Format
MongoDB Manual, ePub Format
About MongoDB
Introduction
User Community
MongoDB Masters
Planet MongoDB
MongoDB Ecosystem
Drivers and Client libraries
C
(
docs
)
C++
(
docs
)
C#
(
docs
)
Erlang
(
docs
)
Haskell
(
docs
)
Java
(
docs
)
JavaScript
(
docs
)
Perl
(
docs
)
PHP
(
docs
)
Python
(
docs
)
Ruby
(
docs
)
Scala
(
docs
)
Tools and Integration
Platform Integration
MongoDB Resources
Downloads
MongoDB Events
Slides and Video
MongoDB Management Service
(
docs
)
Forums
Blog
Download
Drivers
Events
Translations
Edit this Page
GitHub
Report a Problem