Home Whiteboard Practice Code Graphing Calculator Online Compilers Articles Tools

Explore Categories

Find the perfect tutorial for your learning journey

Python TechnologiesDatabasesComputer ProgrammingWeb DevelopmentJava TechnologiesComputer ScienceMobile DevelopmentBig Data & AnalyticsMicrosoft TechnologiesDevOpsLatest TechnologiesMachine LearningDigital MarketingSoftware QualityManagement Tutorials View All Categories
Tutorials Courses Jobs Login
MomentJS Tutorial
  • MomentJS - Home
  • MomentJS - Overview
  • MomentJS - Environment Setup
  • MomentJS - Introduction
  • MomentJS - Parsing Date And Time
  • MomentJS - Date Validation
  • MomentJS - Getter/Setter
  • Manipulate Date And Time
  • Formatting Date And Time
  • MomentJS - Date Queries
  • MomentJS - Internationalization
  • MomentJS - Customization
  • MomentJS - Durations
  • MomentJS - Utilities
  • MomentJS - Plugins
  • MomentJS - Examples
  • MomentJS - Quick Guide
  • MomentJS - Cheatsheet
  • MomentJS - Useful Resources
  • MomentJS - Discussion
Selected Reading
  • UPSC IAS Exams Notes
  • Developer's Best Practices
  • Questions and Answers
  • Online Resume Builder
  • HR Interview Questions
  • Computer Glossary
  • Who is Who
Home Momentjs MomentJS - Unix Timestamp(seconds)

MomentJS - Unix Timestamp(seconds)



Previous
Quiz
Next

This method gives the no of seconds since the Unix epoch.

Syntax

moment().unix();

Example

var a = moment().unix();

Output

Unix Timestamp (seconds)

This value is floored to the nearest second, and does not include a milliseconds component.

momentjs_formatting_date_and_time.htm
Previous Quiz Next
Advertisements
  • ABOUT US
  • OUR TEAM
  • CAREERS
  • JOBS
  • CONTACT US
  • TERMS OF USE
  • PRIVACY POLICY
  • REFUND POLICY
  • COOKIES POLICY
  • FAQ'S
tutorials point logo
Download Android App Download IOS App

Tutorials Point is a leading Ed Tech company striving to provide the best learning material on technical and non-technical subjects.

Copyright 2026. All Rights Reserved.