Skip to content

Commit

Permalink
Change module to package
Browse files Browse the repository at this point in the history
  • Loading branch information
ThishaniLucas committed Feb 11, 2021
1 parent c57d539 commit 8459ba1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Ballerina Time Library
The Time library is one of the standard library modules of the<a target="_blank" href="https://ballerina.io/"> Ballerina
</a> language.

This module provides implementations related to time, date, time zones, and durations.
This package provides implementations related to time, date, time zones, and durations.

For more information go to [The Time Module](https://ballerina.io/learn/api-docs/ballerina/time/).

Expand All @@ -19,7 +19,7 @@ For example demonstrations of the usage, go to [Ballerina By Examples](https://b

Issues and Project tabs are disabled for this repository as this is part of the Ballerina Standard Library. To report bugs, request new features, start new discussions, view project boards, etc. please visit Ballerina Standard Library [parent repository](https://github.com/ballerina-platform/ballerina-standard-library).

This repository only contains the source code for the module.
This repository only contains the source code for the package.

## Building from the Source

Expand All @@ -44,15 +44,15 @@ Execute the commands below to build from source.

./gradlew clean test

3. To build the module without the tests:
3. To build the package without the tests:

./gradlew clean build -x test

4. To debug the tests:

./gradlew clean build -Pdebug=<port>
5. To debug the module with Ballerina language:
5. To debug the package with Ballerina language:

./gradlew clean build -PbalJavaDebug=<port>

Expand Down
8 changes: 4 additions & 4 deletions time-ballerina/Package.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## Module Overview
## Package Overview

This module provides implementations related to time, date, time zones, and durations.
This package provides implementations related to time, date, time zones, and durations.

The module has two main types as [Time](records/Time.html) and [TimeZone](records/TimeZone.html). The `Time` type represents a time associated with a given time zone. It has `time` and `zone` as its attributes. The `TimeZone` type represents the time zone associated with a given time. It has `id` and `offset` as its attributes. An `id` can be one of the following:
The package has two main types as [Time](records/Time.html) and [TimeZone](records/TimeZone.html). The `Time` type represents a time associated with a given time zone. It has `time` and `zone` as its attributes. The `TimeZone` type represents the time zone associated with a given time. It has `id` and `offset` as its attributes. An `id` can be one of the following:

* If `id` equals `Z`, the result is UTC.
* If `id` equals `GMT`, `UTC`, or `UT`, it is equivalent to UTC.
* If `id` starts with `+` or `-`, the ID is parsed as an offset. The offset can be specified in one of the following ways: `+h`, `+hh`, `+hh:mm`, `-hh:mm`, `+hhmm`, `-hhmm`, `+hh:mm:ss`, `-hh:mm:ss`, `+hhmmss`, `-hhmmss`
* Also, `id` can be a region-based zone ID. The format is `{area}/{city}` e.g., "America/Panama". The zones are based on IANA Time Zone Database (TZDB) supplied data.

For information on the operations, which you can perform with this module, see the below **Functions**. For an example on the usage of the operations, see the [Time Example](https://ballerina.io/learn/by-example/time.html).
For information on the operations, which you can perform with this package, see the below **Functions**. For an example on the usage of the operations, see the [Time Example](https://ballerina.io/learn/by-example/time.html).

### Patterns for formatting and parsing

Expand Down

0 comments on commit 8459ba1

Please sign in to comment.