libc: add support for localtime in date command
authorVidisha Thapa <thapa.v@samsung.com>
Tue, 8 Aug 2017 11:42:08 +0000 (17:12 +0530)
committerVidisha Thapa <thapa.v@samsung.com>
Mon, 21 Aug 2017 08:53:19 +0000 (14:23 +0530)
commit7b42d4a174b031772502fff3d8ccb70624cf2c12
treefef1d27bcb70dd30fad0c147db2877bfd54919f6
parentc85927cc43f271842435b57add413fe6351015eb
libc: add support for localtime in date command

Date command did not support localtime (LIBC_LOCALTIME).
This patch gives support for 3 more parameters in date command namely:
Day of Week [Sunday = Sun, Monday = Mon, and so on...]
Day of Year [0,365]
Daylight savings time(DST) flag [positive: DST in effect, 0: DST not in effect, negative: information not availabe]
The parameters are updated based on the RTC support for Localtime.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
apps/system/utils/kdbg_date.c