Coder Social home page Coder Social logo

greetings-interview-task's Introduction

Build Status

Доступные команды

  • -l --language - установка языка для вывода сообщения
  • -tz --timezone - выбор часового пояса

При отсутсвии параметра -l будет использован системный язык, если сообщение на таком языке найдено не будет, будет выбран английский.

При отсутствии параметра -tz, будет произведена попытка понять, в каком часовом поясе находится город, если же не получится, будет взят GMT+0.

Примеры логов:

Main:19 - ### START ###
Main:42 - accepted data: { city: new york, lang: en, tz: hthtt}
utils.HelloMessageProvider:28 - getting datPart by city name: New York; timezone is not valid
utils.HelloMessageProvider:35 - final message: Good Day, New York!
Main:46 - ### END ###

Main:19 - ### START ###
Main:42 - accepted data: { city: kiev, lang: ua, tz: null}
utils.HelloMessageProvider:28 - getting datPart by city name: Kiev; timezone is not valid
utils.HelloMessageProvider:35 - final message: Доброго дня, Kiev!
Main:46 - ### END ###

Main:19 - ### START ###
Main:42 - accepted data: { city: kiev, lang: en, tz: Etc/GMT+3}
utils.HelloMessageProvider:31 - getting dayPart by provided timezone: Etc/GMT+3
utils.HelloMessageProvider:35 - final message: Good Day, Kiev!
Main:46 - ### END ###

greetings-interview-task's People

Contributors

michaelfmnk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.