{"id":1472,"date":"2025-04-17T06:03:00","date_gmt":"2025-04-17T06:03:00","guid":{"rendered":"https:\/\/techtrendfeed.com\/?p=1472"},"modified":"2025-04-17T06:03:01","modified_gmt":"2025-04-17T06:03:01","slug":"how-one-can-set-date-time-from-mac-command-line","status":"publish","type":"post","link":"https:\/\/techtrendfeed.com\/?p=1472","title":{"rendered":"How one can Set Date Time from Mac Command Line"},"content":{"rendered":" \r\n<br><div id=\"main\"><article itemscope=\"\" itemtype=\"http:\/\/schema.org\/Article\">\n<p>Engaged on an internet extension that ships to an app retailer and is not instantly modifiable, like an internet site, may be troublesome.  Since you can not instantly deploy updates, you typically have to bake in hardcoded date-based logic.  Testing future dates may be troublesome if you do not know the right way to rapidly change the date in your native machine.<\/p>\n\n\n\n<p>To alter the present date in your Mac, execute the next from command line:<\/p>\n\n\n\n<pre class=\"shell\">\n# Date Format:  MMDDYYYY\nsudo date -I 06142024\n<\/pre>\n\n\n\n<p>This command doesn&#8217;t modify time, solely the present date.  Utilizing the identical command to reset to present date is straightforward as properly!<\/p>\n\n\n\n<div class=\"x x-long x-secondary\">\n    \n    \n    <div class=\"x-secondary-large\">\n    <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/requestmetrics.com\/?utm_source=davidwalsh\" style=\"display:block;\">\n        <img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/rm_perf_banner-728.min.svg\" style=\"max-width:100%;height:auto;\" alt=\"Request Metrics real user monitoring\" loading=\"lazy\" width=\"728\" height=\"90\"\/>\n    <\/a>\n    <\/div>\n    <div class=\"x-secondary-small\">\n    <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/requestmetrics.com\/?utm_source=davidwalsh\" style=\"display:block;\">\n        <img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/rm_perf_block_300.min.svg\" style=\"max-width:100%;height:auto;\" alt=\"Request Metrics real user monitoring\" loading=\"lazy\" width=\"300\" height=\"250\"\/>\n    <\/a>\n    <\/div>\n<\/div>\n\n\n\n\n\n<\/article>\n\n<div class=\"article-block\" style=\"min-height:90px\"><div class=\"x x-long x-terciary\" style=\"max-height: none;\">\n  \n    \n    \n<div class=\"x-secondary-large\">\n  <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/requestmetrics.com\/?utm_source=davidwalsh\" style=\"display:block;\">\n    <img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/rm_perf_banner-728.min.svg\" style=\"max-width:100%;height:auto;\" alt=\"Request Metrics real user monitoring\" loading=\"lazy\" width=\"728\" height=\"90\"\/>\n  <\/a>\n<\/div>\n<div class=\"x-secondary-small\">\n  <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/requestmetrics.com\/?utm_source=davidwalsh\" style=\"display:block;\">\n    <img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/rm_perf_block_300.min.svg\" style=\"max-width:100%;height:auto;\" alt=\"Request Metrics real user monitoring\" loading=\"lazy\" width=\"300\" height=\"250\"\/>\n  <\/a>\n<\/div>\n\n  \n\n<\/div>\n<\/div>\n\n\n<div class=\"article-block post-more\" style=\"\u201cclear:both;\u201d\"><ul class=\"post-list small-list\"><li data-url=\"https:\/\/davidwalsh.name\/leaving-mozilla\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/Article\"><span itemscope=\"\" itemtype=\"https:\/\/schema.org\/ImageObject\"><img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/mozilla-shirts.jpeg?preview\" class=\"post-image\" alt=\"39 Shirts \u2013 Leaving Mozilla\"\/><\/span><div class=\"preview\"><h3 itemprop=\"name\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/leaving-mozilla\" itemprop=\"url\">39 Shirts \u2013 Leaving\u00a0Mozilla<\/a><\/h3><p>In 2001 I had simply graduated from a small city highschool and headed off to a small city faculty. I discovered myself within the quaint laptop lab the place the substandard computer systems featured two browsers: Web Explorer and Mozilla. It was this lab the place I fell&#8230;<\/p><\/div><\/li><li data-url=\"https:\/\/davidwalsh.name\/write-javascript-promises\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/Article\"><span itemscope=\"\" itemtype=\"https:\/\/schema.org\/ImageObject\"><img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/JavaScriptListImage.png?preview\" class=\"post-image\" alt=\"Write Better JavaScript with Promises\"\/><\/span><div class=\"preview\"><h3 itemprop=\"name\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/write-javascript-promises\" itemprop=\"url\">Write Higher JavaScript with\u00a0Guarantees<\/a><\/h3><p>You have in all probability heard the speak across the water cooler about how guarantees are the long run. All the cool children are utilizing them, however you do not see what makes them so particular. Cannot you simply use a callback? What is the massive deal? On this article, we&#8217;ll&#8230;<\/p><\/div><\/li><\/ul><\/div><div class=\"article-block post-more\"><ul class=\"post-list small-list\"><li data-url=\"https:\/\/davidwalsh.name\/dwprogressbar-2-stepping-events-mootools-progress-bar\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/Article\"><span itemscope=\"\" itemtype=\"https:\/\/schema.org\/ImageObject\"><img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/progress-bar-ex.jpg?preview\" class=\"post-image\" alt=\"dwProgressBar v2:  Stepping and Events\"\/><\/span><div class=\"preview\"><h3 itemprop=\"name\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/dwprogressbar-2-stepping-events-mootools-progress-bar\" itemprop=\"url\">dwProgressBar v2:  Stepping and\u00a0Occasions<\/a><\/h3><p><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/demo\/progress-bar-2.php\"\/>&#13;&#13;dwProgressBar was an enormous hit when it debuted.  For these of you who did not catch my first publish, <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/progress-bar-animated-mootools\">dwProgressBar<\/a> is a MooTools 1.2-based progress bar which permits for as a lot flexibility as potential.  Each piece of dwProgressBar may be managed by CSS&#8230;<\/p><\/div><\/li><li data-url=\"https:\/\/davidwalsh.name\/css-multiple-background\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/Article\"><span itemscope=\"\" itemtype=\"https:\/\/schema.org\/ImageObject\"><img decoding=\"async\" src=\"https:\/\/davidwalsh.name\/demo\/css3logo250.jpg?preview\" class=\"post-image\" alt=\"Multiple Backgrounds with CSS\"\/><\/span><div class=\"preview\"><h3 itemprop=\"name\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/css-multiple-background\" itemprop=\"url\">A number of Backgrounds with\u00a0CSS<\/a><\/h3><p>Anybody that is been within the net growth trade for five+ years is aware of that there are specific options that we should always have had a number of years in the past.  A type of options is the <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/davidwalsh.name\/html5-placeholder\">HTML5 placeholder<\/a>;  we used JavaScript shims for a decade earlier than placeholder got here&#8230;<\/p><\/div><\/li><\/ul><\/div><\/div>\r\n<br>\r\n","protected":false},"excerpt":{"rendered":"<p>Engaged on an internet extension that ships to an app retailer and is not instantly modifiable, like an internet site, may be troublesome. Since you can not instantly deploy updates, you typically have to bake in hardcoded date-based logic. Testing future dates may be troublesome if you do not know the right way to rapidly [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1474,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[1380,1379,1381,416,687,956],"class_list":["post-1472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-command","tag-date","tag-line","tag-mac","tag-set","tag-time"],"_links":{"self":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1472"}],"version-history":[{"count":1,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":1473,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/1472\/revisions\/1473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/media\/1474"}],"wp:attachment":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- This website is optimized by Airlift. Learn more: https://airlift.net. Template:. Learn more: https://airlift.net. Template: 69d9690a190636c2e0989534. Config Timestamp: 2026-04-10 21:18:02 UTC, Cached Timestamp: 2026-06-13 15:23:42 UTC -->