I am porting a very popular (used by several large...
# kotlinx-datetime
s
I am porting a very popular (used by several large airlines) astronomical calculator library to Kotlin Multiplatform, and it heavily relies on
java.util.TimeZone.getRawOffset()
. It doesn’t seem like there is an equivalent in kotlinx-datetime. If I am wrong, how can I achieve equivalent results? If I am right, where can I submit a feature request?
Copy code
/**
 * Returns the amount of time in milliseconds to add to UTC to get
 * standard time in this time zone. Because this value is not
 * affected by daylight saving time, it is called <I>raw
 * offset</I>.
 * <p>
 * If an underlying {@code TimeZone} implementation subclass
 * supports historical GMT offset changes, the method returns the
 * raw offset value of the current date. In Honolulu, for example,
 * its raw offset changed from GMT-10:30 to GMT-10:00 in 1947, and
 * this method always returns -36000000 milliseconds (i.e., -10
 * hours).
 *
 * @return the amount of raw offset time in milliseconds to add to UTC.
 * @see Calendar#ZONE_OFFSET
 */
public abstract int getRawOffset();
đź‘€ 1
v
where can I submit a feature request?
https://github.com/Kotlin/kotlinx-datetime/issues is a good place to start