-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design and implementation of phase 02 #1059
Design and implementation of phase 02 #1059
Comments
In the second phase, we can implement the following APIs according to the initial design. @daneshk FYI. // Time zones
type Zone readonly & object {
// if always at a fixed offset from Utc, then this
// function returns it; otherwise nil
function fixedOffset() returns ZoneOffset?;
// this does not pay attention to timeZoneOffset nor dayOfWeek
// it does pay attention to utc
function utcFromCivil(Civil civilTime) returns Utc|Error;
function utcToCivil(Utc utc) returns Civil;
};
final Zone systemZone = check loadSystemZone();
// Get a time zone from Ballerina's internal database
// of time zones.
// id is of form "Continent/City"
function getZone(string id) returns Zone?;
|
The design phase 02 in this doc mentioned that, // this does not pay attention to timeZoneOffset nor dayOfWeek
// it does pay attention to utc
function utcFromCivil(Civil civilTime) returns Utc|Error; Should this be rephrased as And why we don't need to return an error from the |
Yes, It does pay attention to the time zone, not for the
IMO, the |
The text was updated successfully, but these errors were encountered: