From a7f153e11e6106e3e63cbf36e5ea8543fe1b5450 Mon Sep 17 00:00:00 2001
From: gauravkukade <gkukade54@gmail.com>
Date: Sat, 15 May 2021 00:22:05 +0530
Subject: [PATCH] Update groovy object datatype and java timestamp blogpost

---
 .../2021-05-11-determine-a-datatype-in-groovy.md       |  5 +++++
 ...2021-05-13-how-to-get-current-timestamps-in-java.md | 10 +++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/_posts/groovy/2021-05-11-determine-a-datatype-in-groovy.md b/_posts/groovy/2021-05-11-determine-a-datatype-in-groovy.md
index 3cef5e0..c5e149e 100644
--- a/_posts/groovy/2021-05-11-determine-a-datatype-in-groovy.md
+++ b/_posts/groovy/2021-05-11-determine-a-datatype-in-groovy.md
@@ -42,6 +42,8 @@ class java.util.ArrayList
 class java.lang.String
 java.lang.String
 ```
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/1c12a2e35d8803106d4cf2b0e11f6b18#file-determine-datatype-groovy)
+
 In the above program, we can see that the `names` is an `ArrayList`  and `blogname` is a `String` object.
 
 When we call the `getClass()` method on these objects it prints its respective datatype.
@@ -68,6 +70,7 @@ Output:
 true
 false
 ```
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/eafc65547cd3cd54877ca5d54eec8acc)
 
 In the above program, I have defined one String `blogname`. I have used the `instanceof` keyword to check if the `blogname` implements the `String` class and it prints `true`. It means the `blogname` is an instance of the `String` class.
 
@@ -92,6 +95,8 @@ That's it about checking the datatype of an object in Groovy.
 
 If you know any other way to check the datatype of an object, please comment below to help the community. Thank you.
 
+You can check my YouTube channel [here](https://www.youtube.com/channel/UCl31HHUdQbSHOQfc9L-wo3w)
+
 ### Related Articles
 
 - [Hello World In Groovy](https://coderolls.com/hello-world-in-groovy/)
diff --git a/_posts/java-time/2021-05-13-how-to-get-current-timestamps-in-java.md b/_posts/java-time/2021-05-13-how-to-get-current-timestamps-in-java.md
index dbbebce..02a8813 100644
--- a/_posts/java-time/2021-05-13-how-to-get-current-timestamps-in-java.md
+++ b/_posts/java-time/2021-05-13-how-to-get-current-timestamps-in-java.md
@@ -74,6 +74,8 @@ Output:
 4. timeStampMillis: 1620919459988
 5. timeStampSeconds: 1620919459
 ```
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/b1ceabac137864efd7258b60610cd9dd)
+
 ### Explanation:
 
 1. In the first case, we have used the `.now()` method of the `Instant` class to get the current timestamp.
@@ -118,6 +120,8 @@ Output:
 2. timestampFromDateObject: 2021-05-13 20:55:44.187
 ```
 
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/a965f1a078d382ff7366e7ba6d13561c)
+
 ### Explanation:
 
 1. In the first case, we are got the `timestamp` using the system time in milliseconds. We can get the system time in millisecond using the `System.currentTimeMillis()`.
@@ -158,6 +162,8 @@ Output:
 ```
 Instant To Timestamp: 2021-05-13 21:07:44.381
 ```
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/ea3bc951f15be0010569d306ccafa975)
+
 ### Explanation:
 
 In the above example, we have used `.from()` of the `Timestamp` class to get the current timestamp from the `instant` object.
@@ -199,6 +205,8 @@ Output:
 ```
 Timestamp To Instant: 2021-05-13T15:39:08.046Z
 ```
+See above code as [GitHub Gist](https://gist.github.com/gauravkukade/a031b1904d4efaf758a59462ee2dc02e)
+
 ### Explanation:
 
 In the above example, we have used the `.toInstant()` method on the `timestamp` object to get the current timestamp (as Instant ).
@@ -267,7 +275,7 @@ If you have any queries about the above article, please comment below. Thanks.
 
 We will see how to get the current date-time in java. Also, we will see how we can format them using the SimpleDateFormat.
 
-You can check my YouTube channel at: https://www.youtube.com/channel/UCl31HHUdQbSHOQfc9L-wo3w
+You can check my YouTube channel [here](https://www.youtube.com/channel/UCl31HHUdQbSHOQfc9L-wo3w)
 
 ### Related Articles