承接 warriorgod/international-date-line-crossing 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

warriorgod/international-date-line-crossing

Composer 安装命令:

composer require warriorgod/international-date-line-crossing

包简介

Display correct itinerary items when a ship crosses the IDL

README 文档

README

Display correct itinerary items when a ship crosses the IDL. The IDL crossing needs to be configured with one of the following options:

  • NO - normal item
  • EASTBOUND - item represents IDL crossing Eastbound, gaining a day. The item however is just a marker, it does not take any time (e.g. Day3: IDL crossing, Day3: watching sea-turtles mate).
  • EASTBOUND_DAY - item represents IDL crossing Eastbound, gaining a day. The item represents a day of activity and will count as a day as well (e.g. Day3: Crossing IDL and watching sea-turtles mate).
  • WESTBOUND - item represents IDL crossing Westbound, loosing a day. The item however is just a marker, it does not take any time (e.g. Day3: IDL crossing, Day3: watching sea-turtles mate).
  • WESTBOUND_DAY - item represents IDL crossing Westbound, loosing a day. The item represents a day of activity and will count as a day as well (e.g. Day3: Crossing IDL and watching sea-turtles mate).

Example crossings are:

  1. Ship sails from Asia to US across the pacific ocean (going EASTBOUND) - you gain a day as you are loosing hours all the time
Index Day Date IDL
0 1 2016-12-24
1 2 2016-12-25
2 2 2016-12-25 EASTBOUND
3 3 2016-12-25
4 4 2016-12-26
  1. Same, but the crossing represents a whole day
Index Day Date IDL
0 1 2016-12-24
1 2 2016-12-25
2 3 2016-12-26 EASTBOUND_DAY
3 4 2016-12-26
4 5 2016-12-27
  1. Ship sails from US to Asia across the pacific ocean (going EASTBOUND) - you loose a day as you are gaining hours all the time
Index Day Date IDL
0 1 2016-12-24
1 2 2016-12-25
2 2 2016-12-25 WESTBOUND
3 3 2016-12-27
4 4 2016-12-28
  1. Same, but the crossing represents a whole day
Index Day Date IDL
0 1 2016-12-24
1 2 2016-12-25
2 3 2016-12-26 WESTBOUND_DAY
3 4 2016-12-28
4 5 2016-12-29

Usage

Please see the tests for examples. Basically you define a list of itinerary items and set the IDL options on some of them. Days and dates will then be adjusted accordingly.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固