0 0
Read Time:19 Second

Write a Java program to print OffsetTime HH:mm:ss,Z

import java.time.OffsetTime;
import java.time.format.DateTimeFormatter;
class Offset_DateTime
{
	public static void main(String Args[])
	{
		String t;
		OffsetTime ost = OffsetTime.now();
		DateTimeFormatter formatterOffsetTime = DateTimeFormatter.ofPattern("HH:mm:ss,Z");
		t = formatterOffsetTime.format(ost);
		System.out.println("HH:mm:ss,Z = " + t);
	}
}
/*

Output: HH:mm:ss,Z = 12:43:02,+0530
*/
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Verified by MonsterInsights