Browse Source

Update 'README.md'

rev
code-dev 3 years ago
parent
commit
af5b12f2f5
  1. 11
      README.md

11
README.md

@ -261,17 +261,16 @@ Let's create a template so that you can personalise your greeting message for ea
Given a list of people, for each one of them we want to generate a timezone appropriate greeting text output.
Assuming it is 3:30 pm CEST and we want to generate a greeting for someone in NY, we would print out “Good morning, Mary.” If the person lives in London, we would print out “Good afternoon, Mary.” And if the person lives in Perth, we would print out “Good evening, Mary.” This can be done by using a simple function that takes in the current time and the person's location and outputs the appropriate greeting. By doing this, we can make sure that everyone gets the appropriate greetings no matter what time it is where they are.
Assuming it is 3:30 pm CEST and we want to generate a greeting for someone in NY, we would print out “Good morning, Mary.” If the person lives in London, we would print out “Good afternoon, Mary.” And if the person lives in Perth, we would print out “Good evening, Mary.” This can be done by using a simple function that takes in the current time and the person's location and outputs the appropriate greeting.
Person Domain Class
By doing this, we can make sure that everyone gets the appropriate greetings no matter what time it is where they are.
Name
TimeZoneID
Domain Class - Person
- Name
- ZoneID
[https://docs.oracle.com/middleware/12212/wcs/tag-ref/MISC/TimeZones.html](https://docs.oracle.com/middleware/12212/wcs/tag-ref/MISC/TimeZones.html)
```java
public class Person {

Loading…
Cancel
Save