

{"id":111923,"date":"2023-03-27T09:00:58","date_gmt":"2023-03-27T03:30:58","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111923"},"modified":"2026-06-01T14:29:54","modified_gmt":"2026-06-01T08:59:54","slug":"java-time-converter","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/java-time-converter\/","title":{"rendered":"Java Time Converter \u2013 The Right Time Converter for Your Needs"},"content":{"rendered":"<p>This project will walk you through the process of creating a time converter using Java. The Java Time Converter allows the user to select a city from a drop-down list and add it to a table that displays the current time and date in that city.<\/p>\n<h3>About Java Time Converter<\/h3>\n<p>The objective of this project is to create a Time Converter using Java that allows the user to select a city and display the current time and date in that city in a table.<\/p>\n<h3>Prerequisites for Time Converter using Java<\/h3>\n<ul>\n<li style=\"font-weight: 400\">Basic knowledge of Java programming<\/li>\n<li>Familiarity with Java Swing for creating GUI applications<\/li>\n<\/ul>\n<h3>Download Java Time Converter Project<\/h3>\n<p>Please download the source code of Java Time Converter project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/19RNpDoFVBI1vBtpa3_hROE0DMgI6MDRd\/view?usp=drive_link\"><strong>Java Time Converter Project Code<\/strong><\/a><\/p>\n<h3>Steps to Create Time Converter using Java<\/h3>\n<p>Following are the steps for developing the Java Time Converter project:<\/p>\n<h4>Step 1: Start by importing the necessary packages for the project at the top of the file.<\/h4>\n<p>These include:<\/p>\n<ul>\n<li style=\"font-weight: 400\">java.awt and its subpackages for creating the GUI layout and components.<\/li>\n<li style=\"font-weight: 400\">java.awt.event for handling events such as button clicks.<\/li>\n<li style=\"font-weight: 400\">java.time for working with date and time information.<\/li>\n<li style=\"font-weight: 400\">javax.swing for creating swing components such as JComboBox and JTable.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.training.DataFlair;\r\nimport java.awt.BorderLayout;\r\nimport java.awt.FlowLayout;\r\nimport java.awt.event.ActionEvent;\r\nimport java.awt.event.ActionListener;\r\nimport java.time.LocalDateTime;\r\nimport java.time.ZoneId;\r\nimport java.time.format.DateTimeFormatter;\r\nimport java.util.HashMap;\r\nimport java.util.Map;\r\nimport java.util.TimeZone;\r\nimport java.util.Timer;\r\nimport java.util.TimerTask;\r\nimport javax.swing.JButton;\r\nimport javax.swing.JComboBox;\r\nimport javax.swing.JFrame;\r\nimport javax.swing.JPanel;\r\nimport javax.swing.JScrollPane;\r\nimport javax.swing.JTable;\r\nimport javax.swing.table.DefaultTableModel;\r\n<\/pre>\n<h4>Step 2: Creating the TimeConverter class<\/h4>\n<p>Next, we will create the TimeConverter class which will extend the JFrame class and implement the ActionListener interface. The ActionListener interface is used to handle the events that occur when the user clicks the &#8220;Add City&#8221; button.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public class TimeConverter extends JFrame implements ActionListener {\r\n}\r\n<\/pre>\n<h4>Step 3: Initializing the GUI components<\/h4>\n<p>In the constructor of the TimeConverter class, we will initialize the GUI components of our project. We set the title of the frame, set the size, and set the default close operation to exit the program when the frame is closed. We also set the layout of the frame to BorderLayout.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">  private JComboBox&lt;String&gt; citySelector;\r\n    private Map&lt;String, String&gt; cityTimeLabels;\r\n    private JTable timeTable;\r\n    private DefaultTableModel tableModel;\r\n    private Timer timer;\r\n    private DateTimeFormatter timeFormat;\r\n    private DateTimeFormatter dateFormat;\r\npublic TimeConverter() {\r\n    setTitle(\"Time Converter by DataFlair\");\r\n    setSize(400, 300);\r\n    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n    getContentPane().setLayout(new BorderLayout());\r\n    setLocationRelativeTo(null);\r\n<\/pre>\n<h4>Step 4: Creating the top panel<\/h4>\n<p>We then create a JPanel called topPanel, set its layout to FlowLayout using topPanel.setLayout(new FlowLayout()), and add a JComboBox and JButton to it. The JComboBox is populated with the available time zones using TimeZone.getAvailableIDs() method, and the JButton is labeled &#8220;Add City&#8221; and has an action listener added to it using addActionListener(this) method. We add this topPanel to the NORTH of the JFrame using getContentPane().add(topPanel, BorderLayout.NORTH);<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">JPanel topPanel = new JPanel();\r\n        topPanel.setLayout(new FlowLayout());\r\n        citySelector = new JComboBox(TimeZone.getAvailableIDs());\r\n        JButton addButton = new JButton(\"Add City\");\r\n        addButton.addActionListener(this);\r\n        topPanel.add(citySelector);\r\n        topPanel.add(addButton);\r\n        getContentPane().add(topPanel, BorderLayout.NORTH);\r\n<\/pre>\n<h4>Step 5 :\u00a0 Creating the Table to display the Cities with time<\/h4>\n<p>Next, we create a JTable called timeTable, set its model to a DefaultTableModel, create a new instance of it and add columns for &#8220;City,&#8221; &#8220;Time,&#8221; and &#8220;Date.&#8221; using tableModel.addColumn(&#8220;City&#8221;), tableModel.addColumn(&#8220;Time&#8221;), tableModel.addColumn(&#8220;Date&#8221;) methods. We also add a JScrollPane to the table using JScrollPane scrollPane = new JScrollPane(timeTable); to make the table scrollable and add it to the center of the JFrame using getContentPane().add(scrollPane, BorderLayout.CENTER);<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">tableModel = new DefaultTableModel();\r\n     \r\n     tableModel.addColumn(\"City\");\r\n     tableModel.addColumn(\"Time\");\r\n     tableModel.addColumn(\"Date\");\r\n     timeTable = new JTable(tableModel);\r\n     timeTable.setShowVerticalLines(false);\r\n     timeTable.setEnabled(false);\r\n     JScrollPane scrollPane = new JScrollPane(timeTable);\r\n     getContentPane().add(scrollPane, BorderLayout.CENTER);<\/pre>\n<h4>Step 6 :<\/h4>\n<p>We then create a Map called cityTimeLabels to keep track of the cities added to the table and their corresponding times using Map&lt;String, String&gt; cityTimeLabels = new HashMap&lt;&gt;();, and create two DateTimeFormatter objects for formatting the time and date using DateTimeFormatter.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cityTimeLabels = new HashMap&lt;&gt;();\r\ntimeFormat = DateTimeFormatter.ofPattern(\"hh:mm:ss a\");\r\ndateFormat = DateTimeFormatter.ofPattern(\"EEE MMM d\");\r\n<\/pre>\n<h4>Step 7: Creating the timer to update the time every second<\/h4>\n<p>Next, we create a Timer object called timer, and schedule a TimerTask to run every second (1000 milliseconds) using the schedule() method. In this TimerTask, we loop through all the rows in the table and for each row, we get the city name from the first column of the table, use it to get the current time in that city using LocalDateTime.now(ZoneId.of(city)), and update the time and date columns of the table with the current time and date using the setValueAt() method of the DefaultTableModel.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Timer = new Timer();\r\n     timer.schedule(new TimerTask() {\r\n         public void run() {\r\n             for (int i = 0; i &lt; tableModel.getRowCount(); i++) {\r\n                 String city = (String) tableModel.getValueAt(i, 0);\r\n                 LocalDateTime currentTime = LocalDateTime.now(ZoneId.of(city));\r\n                 tableModel.setValueAt(currentTime.format(timeFormat), i, 1);\r\n                 tableModel.setValueAt(currentTime.format(dateFormat), i, 2);\r\n\r\n             }\r\n         }\r\n     }, 0, 1000);\r\n }\r\n<\/pre>\n<h4>Step 8: Creating the logic to add the new city to the table<\/h4>\n<p>In the actionPerformed() method, we get the selected item from the JComboBox and check if it is already in the cityTimeLabels map. If it is not, we use LocalDateTime.now(ZoneId.of(selectedCity)) to get the current time in that city, add the city and time to the cityTimeLabels map, and add a new row to the table with the city name, time, and date.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">@Override\r\n    public void actionPerformed(ActionEvent e) {\r\n        String selectedCity = (String) citySelector.getSelectedItem();\r\n        if (!cityTimeLabels.containsKey(selectedCity)) {\r\n            LocalDateTime currentTime = LocalDateTime.now(ZoneId.of(selectedCity));\r\n            \r\n            cityTimeLabels.put(selectedCity, currentTime.format(timeFormat));\r\n            tableModel.addRow(new Object[] { selectedCity, currentTime.format(timeFormat),currentTime.format(dateFormat) });\r\n        }\r\n    }\r\n<\/pre>\n<h4>Step 9 :<\/h4>\n<p>Finally, in the main method, we create a new instance of the TimeConverter class and set its visibility to true using the setVisible(true) method to display the JFrame on the screen.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public static void main(String[] args) {\r\n        TimeConverter converter = new TimeConverter();\r\n        converter.setVisible(true);\r\n    }\r\n}\r\n<\/pre>\n<h3>Java Time Converter Output:<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-112057 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor-output.webp\" alt=\"java project time converter output\" width=\"400\" height=\"300\" \/><\/a><\/p>\n<h3>Summary:<\/h3>\n<p>We created a Java Swing project called &#8220;TimeConverter&#8221; that displays the current time of different cities. This project has a JComboBox where a user can select a city and a &#8220;Add City&#8221; button that adds the selected city&#8217;s time to a JTable. The JTable displays the city name, time, and date. We used the LocalDateTime and ZoneId classes of the java.time package to get the current time of the selected city. The Timer class and TimerTask inner class were used to continuously update the time in the JTable every second.<\/p>\n<p>This project uses a BorderLayout and a FlowLayout for the GUI design. The actionPerformed method is implemented to handle the button click event and add the selected city&#8217;s time to the JTable.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2629,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/19RNpDoFVBI1vBtpa3_hROE0DMgI6MDRd\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601090010\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/19RNpDoFVBI1vBtpa3_hROE0DMgI6MDRd\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 08:49:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-11 09:14:59&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-11 09:14:59&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This project will walk you through the process of creating a time converter using Java. The Java Time Converter allows the user to select a city from a drop-down list and add it to&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":112056,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[22479,22481,27229,22416,27230,27231,27233,27232],"class_list":["post-111923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java-project","tag-java-project-for-beginners","tag-java-project-for-practice","tag-java-project-ideas","tag-java-time-converter","tag-java-time-converter-project","tag-time-converter","tag-time-converter-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java Time Converter \u2013 The Right Time Converter for Your Needs - DataFlair<\/title>\n<meta name=\"description\" content=\"In this project, we create a time converter using Java in which user selects a city and displays the current time and date in that city.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/java-time-converter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Time Converter \u2013 The Right Time Converter for Your Needs - DataFlair\" \/>\n<meta property=\"og:description\" content=\"In this project, we create a time converter using Java in which user selects a city and displays the current time and date in that city.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/java-time-converter\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-27T03:30:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T08:59:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp\" \/>\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\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Time Converter \u2013 The Right Time Converter for Your Needs - DataFlair","description":"In this project, we create a time converter using Java in which user selects a city and displays the current time and date in that city.","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:\/\/data-flair.training\/blogs\/java-time-converter\/","og_locale":"en_US","og_type":"article","og_title":"Java Time Converter \u2013 The Right Time Converter for Your Needs - DataFlair","og_description":"In this project, we create a time converter using Java in which user selects a city and displays the current time and date in that city.","og_url":"https:\/\/data-flair.training\/blogs\/java-time-converter\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-03-27T03:30:58+00:00","article_modified_time":"2026-06-01T08:59:54+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Java Time Converter \u2013 The Right Time Converter for Your Needs","datePublished":"2023-03-27T03:30:58+00:00","dateModified":"2026-06-01T08:59:54+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/"},"wordCount":857,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp","keywords":["java project","java project for beginners","java project for practice","java project ideas","java time converter","java time converter project","time converter","time converter project"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/java-time-converter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/","url":"https:\/\/data-flair.training\/blogs\/java-time-converter\/","name":"Java Time Converter \u2013 The Right Time Converter for Your Needs - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp","datePublished":"2023-03-27T03:30:58+00:00","dateModified":"2026-06-01T08:59:54+00:00","description":"In this project, we create a time converter using Java in which user selects a city and displays the current time and date in that city.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/java-time-converter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/java-project-time-convertor.webp","width":1200,"height":628,"caption":"java project time converter"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/java-time-converter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Java Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Java Time Converter \u2013 The Right Time Converter for Your Needs"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=111923"}],"version-history":[{"count":20,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111923\/revisions"}],"predecessor-version":[{"id":148718,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111923\/revisions\/148718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112056"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}