Home Software The way to Set Date Time from Mac Command Line

The way to Set Date Time from Mac Command Line

35
0

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

To vary 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 nicely!

  • I’m an Impostor

    That is the toughest factor I’ve ever needed to write, a lot much less admit to myself.  I’ve written resignation letters from jobs I’ve cherished, I’ve ended relationships, I’ve failed at a number of duties, and let myself down in my life.  All of these emotions had been very…

  • Welcome to My New Office

    My first skilled net improvement was at a small print store the place I sat in a windowless cubical all day. I suffered that boxed in atmosphere for nearly 5 years earlier than I used to be capable of finding a distant job the place I labored from house. The primary…

Previous articleIs Your Subsequent Outfit Created by a Robotic?
Next articleThe Dynamic Ecosystem lies on the core of the Interconnected Enterprise Ecosystem Mannequin |

LEAVE A REPLY

Please enter your comment!
Please enter your name here