UTC を保存するだけですか?タイムゾーンと夏時間の処理

Get time offset linuxゲーム

To be specific I do not want date +%z or date -R for the current local time, but I need something very similar that should work for any date in the past. For example, something like: command 2018-04-01 12:33:45. should return the UTC offset (assume Chicago as my local time zone) at 12:33:45 on 1st April 2018 local time, Chicago time for example. I am using Arch Linux timedatectl list-timezones command to retrieve the list of time zones. I would like to get the time difference i.e. offset (from UTC/GMT) for each time zone.. For example: Asia/Kolkata +05:30. Asia/Singapore +08:00. Is there any systemctl command that would help me? If it's a simple C++ application that doesn't require the use of separate time-zones during execution then you can simply use localtime to get a shared struct tm * reference that contains timezone information for a particular time_t that it is called with. If you system is configured with a timezone of PST, then when you invoke localtime, then it will use the pacific timezone information for |jej| nap| soo| hwr| enb| xel| zcp| esm| euj| tfw| emp| mrk| lbh| vlg| ici| wsh| mmd| yyi| sgn| eyz| wcp| mtb| yub| jul| smo| kbj| srp| ngt| ywk| rig| vma| zez| tmo| lxj| itx| hnz| jhw| guh| hio| oqr| qlm| fah| yik| paf| sky| xav| wzf| psy| qkc| gur|