DateTime :: Event :: Sunrise.

Datetime :: Event :: Sunriseは、特定の日に日の出/日の入りを計算するためのPerl DateTime拡張機能です。
今すぐダウンロード

DateTime :: Event :: Sunrise. ランキングとまとめ

広告

  • Rating:
  • ライセンス:
  • Perl Artistic License
  • 価格:
  • FREE
  • 出版社名:
  • Ron Hill
  • 出版社のWebサイト:
  • http://search.cpan.org/rkhill/Astro-Sunrise-0.91/Sunrise.pm

DateTime :: Event :: Sunrise. タグ


DateTime :: Event :: Sunrise. 説明

DateTime :: Event :: SunRiseは、特定の日に日の出/日の入りを計算するためのPerl DateTime拡張機能です。 DateTime :: Event :: SunRiseは、特定の日にSunrise / Sunsetを計算するためのPerl DateTime拡張子です。 DateTime :: Event :: Sunriseを使用してください。 My $ DT = DATETIME->新規(年=> 2000、月=> 6、DAY => 20)。 My $ SUNRISE = DATETIME :: EVENT :: SUNRISE - > Sunrise(Longitude => ' - 118'、Latitude => '33'、高度=> '-0.833'、繰り返し=> '1')。 My $ SUNSET = DATETIME :: EVENT :: SUNRISE - > SUNSET(経度=> ' - 118'、LATITUDE => '33'、高度=> '-0.833'、繰り返し=> '1')。 My $ TMP_RISE = $ SUNRISE->次へ($ DT); My $ DT2 = DATETIME-> NEW(年=> 2000、月=> 12、DAY => 31)。 #Iterator My $ DT_SPAN = DATETIME :: SPAN->新規(START => $ DT1、END => DT2); My $ SET = $ SUNRISE->交差点($ DT_SPAN); My $ ITER = $ set-> iterator;間(My $ DT = $ ITER->次へ){print ''、$ dt-> datetime;曜日や夜ですか? My $ DAY_SET = DATETIME :: SPANSET-> FROM_SETS(START_SET => $ SUNRISE、END_SET => $ SUNSET);印刷$ DAY_SET- >>($ DT)が含まれていますか? 'day': 'Night'; My $ dt = datetime-> new(年=> 2000、月=> 6、day => 20、time_zone => 'アメリカ/ LOS_ANGELES'、)。My $ SUNRISE = DATETIME :: Event :: Sunrise - > New(Longitude => ' - 118'、Latitude => '33'、高度=> '-0.833'、繰り返し=> '1'); My $ TMP = $ SUNRISE-> SUNRISE_SUNSET_SPAN($ dt);印刷 "Sunriseは:"、$ tmp-> start-> datetime、 "n";印刷 "Sunsetは:"、$ tmp-> end-> datetime; My $ DT1 = $ SUNRISE-> SUNRISE_DATETIME($ DT);印刷 "Sunriseは:"、$ DT1->日時、 "n"; My $ DT2 = $ SUNRISE-> SUNSET_DATETIME($ DT);印刷 "Sunsetは:"、$ DT2-> Datetime、 "N";要件: ・Perl


DateTime :: Event :: Sunrise. 関連ソフトウェア