Code Monkey home page Code Monkey logo

Comments (8)

jerome2710 avatar jerome2710 commented on May 26, 2024 1

You might use the format character a to show AM/PM.

Have a look at js/time/time.js near line 74:
$(this.timeLocation).html(_now.format(this._timeFormat + ':mm[<span class="sec">]ss[</span>] a'));
Note the added a near the end, this will result in AM/PM.

Good luck!

from magicmirror.

monsieurpouet avatar monsieurpouet commented on May 26, 2024

He is there.
In config.js, you've a parameter to change that. At the top of the file.

from magicmirror.

Chyase avatar Chyase commented on May 26, 2024
var config = {
    lang: 'nl',
    time: {
        timeFormat: 12,
        displaySeconds: true,
        digitFade: false,
    },

Where at?

from magicmirror.

danynek avatar danynek commented on May 26, 2024

Time format: 12 or 24

DM

    1. 2016 v 13:55, Chyase [email protected]:

var config = {
lang: 'nl',
time: {
timeFormat: 12,
displaySeconds: true,
digitFade: false,
},
Where at?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

from magicmirror.

Chyase avatar Chyase commented on May 26, 2024

I'm actually looking for it to say if its AM or PM- not 24 hours vs 12 hours-

from magicmirror.

monsieurpouet avatar monsieurpouet commented on May 26, 2024

Yes, I thought about this.
Maybe, I didn't understood the question. You talk about AM/PM and not 12/24.
For me, it was the same things.

from magicmirror.

Chyase avatar Chyase commented on May 26, 2024

Yeah I just want it to show AM when its morning and then PM when its afternoon/night

from magicmirror.

Chyase avatar Chyase commented on May 26, 2024

Jerome, that worked. Thanks!

from magicmirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.