Some constants of SimpleTimeZone.
1. SimpleTimeZone.STANDARD_TIME
Syntax:
int java.util.SimpleTimeZone.STANDARD_TIME : 1 [0x1]
Constant for a mode of start or end time specified as standard time.
Approach
Java
import java.util.SimpleTimeZone;public class SimpleTimeZoneConstants {public static void main(String[] args) {System.out.println(SimpleTimeZone.STANDARD_TIME);}}
Output:
1
2. SimpleTimeZone.UTC_TIME
Syntax:
int java.util.SimpleTimeZone.UTC_TIME : 2 [0x2]
Constant for a mode of start or end time specified as UTC. European Union rules are specified as UTC time, for example.
Approach
Java
import java.util.SimpleTimeZone;public class SimpleTimeZoneConstants {public static void main(String[] args) {System.out.println(SimpleTimeZone.UTC_TIME);}}
Output:
2
3. SimpleTimeZone.WALL_TIME
Syntax:
int java.util.SimpleTimeZone.WALL_TIME : 0 [0x0]
Constant for a mode of start or end time specified as wall clock time. Wall clock time is standard time for the onset rule and daylight time for the end rule.
Approach
Java
import java.util.SimpleTimeZone;public class SimpleTimeZoneConstants {public static void main(String[] args) {System.out.println(SimpleTimeZone.WALL_TIME);}}
Output:
0
No comments:
Post a Comment