Monday, June 17, 2024
HomeProgrammingHow 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 an internet site, could be tough. Since you can not instantly deploy updates, you typically must bake in hardcoded date-based logic. Testing future dates could be tough if you do not know find out how to 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 simple as properly!

  • CSS Vertical Center with Flexbox

    I am 31 years outdated and really feel like I have been within the net growth recreation for hundreds of years.  We knew endlessly that layouts in CSS had been a nightmare and all of us thought-about flexbox our savior.  Whether or not it seems that manner stays to be seen however flexbox does simply…

  • Firefox Marketplace Animated Buttons

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments