rockbox/apps/plugins/lua
William Wilgus f456dbfa52 [Bugfix] FS#13902 lua strfrtime wrong month field, did not add one to month
posix month field is called mon not month
mon goes from 0-11 so strfrtime needs to add 1 to the number for %m
day of week goes 0-6 where 0 = sunday
day of year goes 0-365 (365 on a leap year)

according to lua everything starts at 1
so month is 1-12
day of week goes 1-7 1 = sunday
day of year is 1-365 (366 on a leap year)

added some fields in the time_date example

Change-Id: Icd502b172285d23133488aa3456786d756667bfa
2026-05-22 18:10:36 -04:00
..
include_lua [Bugfix] FS#13902 lua strfrtime wrong month field, did not add one to month 2026-05-22 18:10:36 -04:00
lua_tests lua plugin remove strfrtime in favor of strfrtm.lua 2026-01-08 21:39:54 -05:00
action_helper.pl
button_helper.pl
lapi.c lua extend stars demo plugin 2024-04-28 01:03:16 -04:00
lapi.h
lauxlib.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
lauxlib.h
lbaselib.c lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lbitlib.c
lcode.c lua fix potential null warning 2021-08-03 11:02:15 +00:00
lcode.h
ldebug.c misc: Properly annotate some intentional case fallthroughs 2025-04-22 20:54:37 -04:00
ldebug.h lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
ldo.c Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
ldo.h
ldump.c lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lfunc.c lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lfunc.h
lgc.c lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lgc.h Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
liolib.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
llex.c misc: Properly annotate some intentional case fallthroughs 2025-04-22 20:54:37 -04:00
llex.h
llimits.h
lmathlib.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
lmem.c
lmem.h
loadlib.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
lobject.c
lobject.h lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lopcodes.c
lopcodes.h
loslib.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
lparser.c lua Fix a few potential bugs 2021-08-13 22:44:45 -04:00
lparser.h lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lstate.c Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
lstate.h Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
lstring.c Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
lstring.h
lstrlib.c
ltable.c Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
ltable.h
ltablib.c
ltm.c
ltm.h
lua.h lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lua.make make: define PLUGIN when preprocessing plugin linker scripts 2026-03-06 14:49:00 +00:00
lua_user.c Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
lua_user.h Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
luaconf.h lua extend stars demo plugin 2024-04-28 01:03:16 -04:00
luadir.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
luadir.h
lualib.h
lundump.c lua LCD (Lua Compact Debug) patch 2019-08-08 07:11:30 +02:00
lundump.h
lvm.c lua fix crashes EGC failure to lock stack in concat 2019-08-05 21:20:30 -05:00
lvm.h
lzio.c
lzio.h Lua Add Emergency Garbage Collector 2019-07-28 15:17:48 +02:00
Makefile build: Rename SHARED_LDFLAG to SHARED_LDFLAGS 2021-07-08 19:53:05 -04:00
rbdefines_helper.pl plugins - Add PLUGIN_GOTO_ROOT - lua add PLUGIN_GOTO_ROOT and PLUGIN_ERROR 2025-12-05 12:03:58 -05:00
README plugins: add strstr() to plugin API 2025-12-12 13:30:54 +00:00
rockaux.c [lua][BUGFIX] splash_scroller FS#13753, 13754 unicode + default font/fg/bg 2026-01-24 09:19:19 -05:00
rockconf.h libc: move strncpy to core 2026-05-15 10:04:06 -04:00
rocklib.c lua rocklib.c add splash_progress function 2026-05-16 14:56:51 -04:00
rocklib.h
rocklib_aux.pl plugin api: Add audio_pre_ff_rewind to plugin's API 2025-12-29 19:58:26 +05:00
rocklib_events.c lua: rocklib_events fix 2023-01-02 13:38:08 -05:00
rocklib_events.h
rocklib_img.c [Bugfix] FS#13878 FS#13862 lua alpha bmp overflow and image flip example 2026-04-29 02:17:46 -04:00
rocklib_img.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
rocklibc.h lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
rocklua.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
settings_helper.pl Lua add metadata and settings reading helper module 2019-09-07 03:10:59 +02:00
SOURCES lua plugin remove strfrtime in favor of strfrtm.lua 2026-01-08 21:39:54 -05:00
strftime.c lua -- remove direct rb-> libc calls infavor of macro substitution WIP 2026-01-08 22:32:23 -05:00
strpbrk.c lua misc tweaks and cleanup 2020-10-04 04:00:54 -04:00
tlsf_helper.c [BugFix] tlsf get_new_area should return 0u or OOM 2024-04-27 03:23:43 -04:00

The following files are (with slight modifications for Rockbox) from dietlibc
version 0.31 which is licensed under the GPL version 2:

    gmtime.c
    strftime.c