Skip to content

Commit

Permalink
Merge pull request #5638 from ayeshLK/2201.9.x-dev
Browse files Browse the repository at this point in the history
[2201.9.x] Update Ballerina time version
  • Loading branch information
ayeshLK authored Sep 13, 2024
2 parents 7d0fc4d + c9b0f1f commit a7ca135
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function testFunc() returns error? {

test:assertEquals(outputs[2],
"Converted civil value: {\"utcOffset\":{\"hours\":5,\"minutes\":30},\"timeAbbrev\":\"Asia/Colombo\",\"dayOfWeek\":1,\"year\":2021,\"month\":4,\"day\":12,\"hour\":23,\"minute\":20,\"second\":50.52}");
test:assertEquals(outputs[3], "Civil string representation: 2021-04-12T17:50:50.520Z");
test:assertEquals(outputs[3], "Civil string representation: 2021-04-12T23:20:50.520+05:30");
test:assertEquals(outputs[4], "Email formatted string: Mon, 3 Dec 2007 10:15:30 Z");

test:assertEquals(outputs[5],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function main() returns error? {
io:println("Converted civil value: " + civil1.toString());

// Converts a given `time:Civil` value to a RFC 3339
// (e.g. `2007-12-03T10:15:30.00Z`) formatted string.
// (e.g. `2021-04-12T23:20:50.520+05:30`) formatted string.
string civilString = check time:civilToString(civil1);
io:println(`Civil string representation: ${civilString}`);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $ bal run time_formatting_and_parsing.bal
UTC value: [1196676930,0.12]
UTC string representation: 2007-12-03T10:15:30.120Z
Converted civil value: {"utcOffset":{"hours":5,"minutes":30},"timeAbbrev":"Asia/Colombo","dayOfWeek":1,"year":2021,"month":4,"day":12,"hour":23,"minute":20,"second":50.52}
Civil string representation: 2021-04-12T17:50:50.520Z
Civil string representation: 2021-04-12T23:20:50.520+05:30
Email formatted string: Mon, 3 Dec 2007 10:15:30 Z
Civil record of the email string: {"utcOffset":{"hours":-8,"minutes":0},"timeAbbrev":"America/Los_Angeles","dayOfWeek":3,"year":2021,"month":3,"day":10,"hour":19,"minute":51,"second":55}
Email string of the civil record: Wed, 10 Mar 2021 19:51:55 -0800
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configurat
# Stdlib Level 01
stdlibIoVersion=1.6.1
stdlibJavaArraysVersion=1.4.0
stdlibTimeVersion=2.4.0
stdlibTimeVersion=2.5.0
stdlibUrlVersion=2.4.0
stdlibXmldataVersion=2.7.0
observeVersion=1.2.3
Expand Down

0 comments on commit a7ca135

Please sign in to comment.