{"id":80720,"date":"2021-05-20T09:00:27","date_gmt":"2021-05-20T03:30:27","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=80720"},"modified":"2021-05-20T09:00:27","modified_gmt":"2021-05-20T03:30:27","slug":"python-date-and-time","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/","title":{"rendered":"Python Date and Time"},"content":{"rendered":"<p>As we generally give utmost importance to our time, so does python. It has something called \u2018time\u2019 which is inbuilt but though the importance of time remains same in all spheres, yet the purpose served is different.<\/p>\n<p>The magic basket as you remember has this most important element in it, which is almost used by every coder in most dynamic, static and graphic oriented codes. Let&#8217;s check out what is so much interesting which makes \u2018python time\u2019 different from \u2018ours\u2019<\/p>\n<p>Technically Python contains a module named datetime to get the access with dates and times. Let\u2019s have a fair idea of what this is actually about, by a simple basic code:<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import datetime\n    techistime = datetime.datetime(2020,8,25)\n    #this will display the date\n    print(techistime)\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">\n<p><span style=\"font-weight: 400\">2020-08-25 00:00:00<\/span><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0&gt;&gt;&gt;\u00a0<\/span><\/p>\n<\/div>\n<p><span style=\"font-weight: 400\">Further classifying the date and time classes into the following 6 main classes \u2013<\/span><\/p>\n<p><b>1. Date:<\/b><span style=\"font-weight: 400\"> It runs the code in such a way that it displays the date.<\/span><\/p>\n<p><b>2. Time:<\/b><span style=\"font-weight: 400\"> Dependent expression of the date.<\/span><\/p>\n<p><b>3. Datetime: <\/b><span style=\"font-weight: 400\">Combinatorial of both date and time as a single unit.<\/span><\/p>\n<p><b>4. Timedelta:<\/b><span style=\"font-weight: 400\"> Expression for representing date and time together.<\/span><\/p>\n<p><b>5. Tzinfo: <\/b><span style=\"font-weight: 400\">Time zonal expression for date.<\/span><\/p>\n<p><b>6. Timezone:<\/b><span style=\"font-weight: 400\"> Class of amendment for the date functions.<\/span><\/p>\n<h3>Date and time-related Modules in Python<\/h3>\n<p>Date and time play a very crucial role in any programming, if not assigned the true value these two functions work according to the binary value provided by the CPU.<\/p>\n<p>Date and time function together helps the coder achieve the internal logistics of the executable code manually from the code itself. There are various types of modules in date and time, which are very extensible and helpful for any code.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Index\u00a0<\/b><\/td>\n<td><b>Format type<\/b><\/td>\n<td><b>values<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Year (4 digits)\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">xxxx<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">1<\/span><\/td>\n<td><span style=\"font-weight: 400\">Month\u00a0\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">0-12<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">2<\/span><\/td>\n<td><span style=\"font-weight: 400\">Second\u00a0\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">0 to 61 (60\/61 are leap seconds)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">3<\/span><\/td>\n<td><span style=\"font-weight: 400\">Day of Week\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">0 to 6 (Monday to Sunday)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">4<\/span><\/td>\n<td><span style=\"font-weight: 400\">Day of Year\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">1 to 366 (Julian day)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">5<\/span><\/td>\n<td><span style=\"font-weight: 400\">dst\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">-1,0,1<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">6<\/span><\/td>\n<td><span style=\"font-weight: 400\">Hour<\/span><\/td>\n<td><span style=\"font-weight: 400\">0 to 23<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">7<\/span><\/td>\n<td><span style=\"font-weight: 400\">minute<\/span><\/td>\n<td><span style=\"font-weight: 400\">0 to 59<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Datetime in Python<\/h3>\n<p>This gives an insight to the delta-related objects in the code. In timedelta objects, the user is asked to input the time-related data, and then the code interprets the data in runtime and then displays the output.<\/p>\n<p>Time delta provides the difference between the two-time units as well, it allows the user to enter two values or takes the CPU value by default.<\/p>\n<p><b>Handling timezone in Python: <\/b><span style=\"font-weight: 400\">This is a simple way to manipulate the time according to the user. Handling the timezone literally means manipulating the time according to the need of the coder, and this can be simply done by changing the default time to the set time module.<\/span><\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from datetime import datetime\nnow= datetime.now()\n#it will display the current time\nthisistech = now.strftime(\"%H:%M:%S\")\nprint(\"time:\", thisistech)\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">time: 19:44:57<\/span><span style=\"font-weight: 400\">&gt;&gt;&gt;<\/span><\/p>\n<\/div>\n<h3>Python format datetime<\/h3>\n<p>The way date and time is represented can be different in different places, organizations. It is generally used by the coders so as to keep a check on the user as well.<\/p>\n<p>The datetime module has a class named dateclass which can contain information from both date and time objects. This also print years, months, hours, minute and timestamp<\/p>\n<p><b>Datetime.date Class : <\/b><span style=\"font-weight: 400\">This helps the coder in searching the current time in the code.<\/span> <span style=\"font-weight: 400\">We can also create date objects from a timestamp attribute. A timestamp is the number of seconds between a particular date and January 1, 1970 at UTC. <\/span><\/p>\n<p><span style=\"font-weight: 400\">One can convert a timestamp to date using the fromtimestamp() method. Different functions in date class() are as follow:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Function\u00a0<\/b><\/td>\n<td><b>Description\u00a0<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>fromtimestamp(timestamp)<\/b><\/td>\n<td><span style=\"font-weight: 400\">Return local date<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>fromordinal(ordinal)<\/b><\/td>\n<td><span style=\"font-weight: 400\"> Return the date corresponding to the proleptic Gregorian ordinal<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>fromisoformat(date_string)<\/b><\/td>\n<td><span style=\"font-weight: 400\">Return a date corresponding to a date_string given in the format YYYY-MM-DD:<\/span><\/td>\n<\/tr>\n<tr>\n<td><b>fromisocalendar(year, week, day)<\/b><\/td>\n<td><span style=\"font-weight: 400\">Return a date corresponding to the calendar date specified by year, week and day.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from datetime import date\ntechistime= date.fromtimestamp(1326244364)\n#this will display the date \nprint(\"the date today is\", techistime)\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">the date today is 2012-01-11<\/span><\/p>\n<blockquote><p><span style=\"font-weight: 400\">&gt;&gt;\u00a0<\/span><\/p><\/blockquote>\n<\/div>\n<h3>Python Timedelta<\/h3>\n<p>It is basically an object that represents the duration of the code. Is mainly used to calculate the duration between any two dates or any two times. It is used for retrieving the object case with some delta date or time.<\/p>\n<p>Time delta as in mathematics represent the difference between the small rate occuring events, it also allows the user to calculate the period of time. Time deta also provides the coder to code in such a way that the default code object gets replaced by the user entered object in the code.<\/p>\n<p><strong>For Example<br \/>\n<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from datetime import timedelta\n#t1_ = timedelta(seconds = 45)\n#t2= timedelta(seconds = 34)\nt3 = 90\nprint(\"t3_ =\", 90)\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">t3_ = 90<\/span><span style=\"font-weight: 400\">&gt;&gt;&gt;\u00a0<\/span><\/p>\n<\/div>\n<p><b>Difference between two dates and times: <\/b><span style=\"font-weight: 400\">This can be done by simply comparing two different delta objects. And this performs a while loop inside the code. The usage of for loop in this method is strictly prohibited, as the recursive allowance for different dates or times may damage the code to much extent.<\/span><\/p>\n<p><strong>Example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from datetime import datetime, date\nt1 = date(year = 2020, month = 7, day = 12)\nt2 = date(year = 2021, month = 12, day = 23)\nt3 = t1 - t2\nprint(\"t3 =\", t3)\nt4 = datetime(year = 2020, month = 7, day = 12, hour = 7, minute = 9, second = 33)\nt5 = datetime(year = 2021, month = 12, day = 23, hour = 5, minute = 55, second = 13)\nt6 = t4 - t5\nprint(\"t6 =\", t6)\n\nprint(\"type of t3 =\", type(t3)) \nprint(\"type of t6 =\", type(t6)) \n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">t3 = -529 days, 0:00:00<\/span><span style=\"font-weight: 400\">t6 = -529 days, 1:14:20<\/span><\/p>\n<p><span style=\"font-weight: 400\">type of t3 = &lt;class &#8216;datetime.timedelta&#8217;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">type of t6 = &lt;class &#8216;datetime.timedelta&#8217;&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">&gt;&gt;&gt;\u00a0<\/span><\/p>\n<\/div>\n<p><b>Difference between two timedelta objects: <\/b><span style=\"font-weight: 400\">This provides the difference between any two delta objects if instructed by the coder. The usage of time delta object can also be done on one object only, taking the other as a default value from the CPU. Subsequently, the predefined values give more accuracy in the code.<\/span><\/p>\n<p><strong>Example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#t1 = week = 2, day = 5, hour = 1, seconds = 38\n#t2 = day = 4, hours = 11, minute = 4, second = 54\nt3 = 14\nprint(\"t3 =\", t3)\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">t3 = 14<\/span><span style=\"font-weight: 400\">&gt;&gt;&gt;\u00a0<\/span><\/p>\n<\/div>\n<h3>Python Tzinfo class<\/h3>\n<p>This class signifies that the abstract value of a code can not be given as input directly. It proceeds as an individual value in the code, with tzinfo as a class function. From the major time module, it extracts the random values and calculates them as the input in the run time.<\/p>\n<p>The UTC methods to perform this class can be majorly done by the source code only. The tzinfo provides the coder a chance to work with the time module in such a way that his own codes may get set to the default, and the CPU time may not be considered in any further code.<\/p>\n<p><strong>Example<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">from datetime import timedelta\nt1 = timedelta(seconds = 33)\nt2 = timedelta(seconds = 54)\nt3 = t1 - t2\nprint(\"t3 =\", t3)\nprint(\"t3 =\", abs(t3))\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">t3 = -1 day, 23:59:39<\/span><span style=\"font-weight: 400\">t3 = 0:00:21<\/span><\/p>\n<\/div>\n<h3>Python Timezone class<\/h3>\n<p>It is a subcategory of tzinfo which acts as an interpreter sheet between any two integral values of code. It operates on one value at one time. Time zone class also provides a coder the integral value of any calculative code as an option to convert the same in time as well.<\/p>\n<p>This class is although not frequently used by the coder because of the already present datetime class(). Yet it is important for the coder to check the date-time calculation for accuracy in this class as well.<\/p>\n<h3>Conclusion<\/h3>\n<p><span style=\"font-weight: 400\">Having read and applied all the codes in the article, a coder gets a fair idea of what python time actually is like. It is as important as the coder\u2019s time in any dynamic code.<\/span><\/p>\n<p><span style=\"font-weight: 400\"> Time is fun, and complicated at the same time. To get its best is practicing more and more codes, and remembering the usage and syntax too. Happy pythonning!\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we generally give utmost importance to our time, so does python. It has something called \u2018time\u2019 which is inbuilt but though the importance of time remains same in all spheres, yet the purpose&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":80778,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[3425,3426,3427,3428,3429],"class_list":["post-80720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-date","tag-python-date-and-time","tag-python-time","tag-python-timezone-class","tag-python-tzinfo-class"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Date and Time - TechVidvan<\/title>\n<meta name=\"description\" content=\"In Python, date, time and datetime classes provides a number of function to deal with dates, times and time intervals. Learn more about it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Date and Time - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"In Python, date, time and datetime classes provides a number of function to deal with dates, times and time intervals. Learn more about it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-20T03:30:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Date and Time - TechVidvan","description":"In Python, date, time and datetime classes provides a number of function to deal with dates, times and time intervals. Learn more about it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/","og_locale":"en_US","og_type":"article","og_title":"Python Date and Time - TechVidvan","og_description":"In Python, date, time and datetime classes provides a number of function to deal with dates, times and time intervals. Learn more about it.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-05-20T03:30:27+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Python Date and Time","datePublished":"2021-05-20T03:30:27+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/"},"wordCount":1114,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg","keywords":["Python Date","python date and time","Python Time","Python Timezone Class","Python Tzinfo class"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/","url":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/","name":"Python Date and Time - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg","datePublished":"2021-05-20T03:30:27+00:00","description":"In Python, date, time and datetime classes provides a number of function to deal with dates, times and time intervals. Learn more about it.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/05\/Python-Date-Time-TV.jpg","width":1200,"height":628,"caption":"Python date and Time"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-date-and-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python Date and Time"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/80720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=80720"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/80720\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/80778"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=80720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=80720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=80720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}