• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozTimeManager

MozTimeManager

In This Article
  1. Summary
  2. Interface overview
  3. Properties
  4. Methods
  5. Specification
  6. See also

This API is available on Firefox OS for internal applications only.

 

Summary

The MozTimeManager interface is used to set the system time on a device.

Interface overview

interface MozTimeManager
{
  void set((double or Date) time);
}

Properties

None.

Methods

MozTimeManager.set()
Sets the system time.

Specification

Not part of any specification.

See also

  • Gaia date/time code in the setting app

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Non-standard
  • Time
 Contributors to this page: chrisdavidmills, fscholz, MHasan, Prachi_Dighe, ethertank, justinpotts, Jeremie, teoli, Sheppy, Stoyan, dbruant, jlebar
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:07:32 AM
See also
  1. Time and Clock API
  2. Archive
  3. Events
    1. moztimechange
  4. Related pages for Time and Clock API
    1. MozTimeManager
    2. Navigator.mozTime