Java SystemV and JodaTime timezone

I work with time zones in a Java application using JodaTime. I am encountering a problem when trying to create a DateTimeZone (JodaTime) object from a java timezone id. Joda throws

 java.lang.IllegalArgumentException: The datetime zone id 'SystemV/HST10' is not recognised

for the following list of time zones:

  • SystemV / HST10
  • SystemV / YST9
  • SystemV / YST9YDT
  • SystemV / PST8
  • SystemV / PST8PDT
  • SystemV / MST7
  • SystemV / MST7MDT
  • SystemV / CST6
  • SystemV / CST6CDT
  • SystemV / EST5
  • SystemV / EST5EDT
  • SystemV / AST4
  • SystemV / AST4ADT

For what time intervals is it used? Are they relevant to non-programmers? Should a general use application support these time slots?

Thank.

+3
source share
3 answers

SystemV . , Joda-Time joda-time jar systemv. . systemv. (.. jar).

+1

java TimeZone DateTimeZone, DateTimeZone # forTimeZone

TimeZone tz = //...  
DateTimeZone dtz = DateTimeZone.forTimeZone(tz);  

"SystemV/"

,

String tzId = "SystemV/MST7MDT";
DateTimeZone tz = DateTimeZone.forID(tzId.replaceAll("SystemV/", ""));  

TimeZone tz = TimeZone.getTimeZone("SystemV/MST7MDT");
DateTimeZone jodaTz = DateTimeZone.forTimeZone(tz);
+1

I will add this as a new post, as it provides answers to my question. SystemV temporary points were used in the old UNIX OS, which, you guessed it, was called UNIX SYSTEM V. After discussing with my team, we decided that they were not important for non-programmers and even for programmers at the moment. Therefore, we decided not to use them in our application.

Some links to SystemV time zones:

+1
source

All Articles