package
0.5.36
Repository: https://github.com/devlights/try-golang.git
Documentation: pkg.go.dev

# README

サンプルリスト

このディレクトリには以下のサンプルがあります。

fileexample namenote
time_since.gotime_sincetime.Since() のサンプルです.
time_after.gotime_aftertime.After() のサンプルです.
time_unix_to_time.gotime_unix_to_timetime.Unix(sec, nsec) のサンプルです.
time_now.gotime_nowtime.Now() のサンプルです.
time_parse.gotime_parsetime.Parse() のサンプルです.
time_tick_and_ticker.gotime_tick_and_tickertime.Tick と time.NewTicker の利用シーンの違いについてのサンプルです
time_timer.gotime_timertime.NewTimer のサンプルです
time_afterfunc.gotime_afterfunctime.AfterFunc のサンプルです
change_local_timezone.gotime_changelocaltimezonetime.Localを変更して強制的にローカルタイムゾーンを一時的に変更するサンプルです
time_json.gotime_jsontime.Time を json 形式で扱う場合のサンプルです
time_json_custom.gotime_json_customtime.Time をカスタム JSON エンコード・デコードで利用するサンプルです
time_in.gotime_intime.In() の使い方のサンプルです
time_truncate.gotime_truncatetime.Truncate() のサンプルです。n分置き や n時間置き の時間を表現することができます。
time_truncate_hours.gotime_truncate_hourstime.Timeから時刻部分を除去するサンプルです.
time_change_timezone.gotime_change_timezonetime.Timeをいろいろなタイム・ゾーンの値に変換するサンプルです
time_format_datetime.gotime_format_datetimeGo1.20で追加された time.DateTime フォーマット書式についてのサンプルです
time_format_dateonly.gotime_format_dateonlyGo1.20で追加された time.DateOnly フォーマット書式についてのサンプルです
time_format_timeonly.gotime_format_timeonlyGo1.20で追加された time.TimeOnly フォーマット書式についてのサンプルです
time_format_millisecond.gotime_format_millisecondtime.Format() にてミリ秒を出力するサンプルです。
time_format_microsecond.gotime_format_microsecondtime.Format() にてマイクロ秒を出力するサンプルす。
time_calc_nextmonth.gotime_calc_nextmonth翌月の日付を求めるサンプルです
time_daysinmonth.gotime_daysinmonth月の日数を求めるサンプルです
time_sleep.gotime_sleeptime.Sleep() のサンプルです。
time_cancellable_sleep.gotime_cancellable_sleepキャンセル可能なスリープ処理のサンプルです。
time_parseDuration.gotime_parse_durationtime.ParseDuration() のサンプルです