Monday, June 17, 2024
HomeSoftware DevelopmentHow you can Set Date Time from Mac Command Line

How you can Set Date Time from Mac Command Line


Engaged on an online extension that ships to an app retailer and is not instantly modifiable, like a web site, could be troublesome. Since you can’t instantly deploy updates, you typically must bake in hardcoded date-based logic. Testing future dates could be troublesome if you do not know how you can shortly change the date in your native machine.

To alter the present date in your Mac, execute the next from command line:

# Date Format:  MMDDYYYY
sudo date -I 06142024

This command doesn’t modify time, solely the present date. Utilizing the identical command to reset to present date is straightforward as properly!

  • 5 HTML5 APIs You Didn’t Know Existed

    Whenever you say or learn “HTML5”, you half anticipate unique dancers and unicorns to stroll into the room to the tune of “I am Attractive and I Know It.”  Are you able to blame us although?  We watched the elemental APIs stagnate for therefore lengthy {that a} fundamental characteristic…

  • How I Stopped WordPress Comment Spam

    I really like nearly each a part of being a tech blogger:  studying, preaching, bantering, researching.  The one half about running a blog that I completely detest:  coping with SPAM feedback.  For the previous two years, my weblog has registered 8,000+ SPAM feedback per day.  PER DAY.  Bloating my database…



Supply hyperlink
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments