Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to store the Live Time in Json File using Node js?

I’m new in node js, when I create the Countdown Clock, Using With Nodejs and javascript,

I’m facing an issue with When the server restarted The Timer also Restarted

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

JSON File Using

StartTime.json 

    "UserTime": [
            {
                "id": 1,
                "name": "Jack",
                "TimeDuration": 25:00
            },
            {
                "id": 2,
                "name": "Mike",
                "TimeDuration": 30:00
            }
    ]

StartTime -> 30:00 mins, ReminingLiveTime->24:52;

After Restarting I need the Same ReminingLiveTime to be stored on the server.

>Solution :

I understood Your Question, Initially you Just Create Custom Api, Before Restarting The Server Pass the Time On it

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading