Browse Source

Merge pull request #1608 from Legimet/fix-api-doc-typo

Fix typo in duk_time_to_components documentation
pull/1607/head
Sami Vaarala 7 years ago
committed by GitHub
parent
commit
18e364fd3d
  1. 2
      website/api/duk_time_to_components.yaml

2
website/api/duk_time_to_components.yaml

@ -28,7 +28,7 @@ example: |
* human readable printing add 1 to the month. Time components are
* IEEE doubles to match Ecmascript Date behavior.
*/
duk_time_components(ctx, time, &comp);
duk_time_to_components(ctx, time, &comp);
printf("Datetime: %04d-%02d-%02d %02d:%02d:%02d.%03dZ\n",
(int) comp.year, (int) comp.month + 1, (int) comp.day,
(int) comp.hours, (int) comp.minutes, (int) comp.seconds,

Loading…
Cancel
Save