Browse Source

Fix typo in duk_time_to_components documentation

pull/1608/head
Legimet 7 years ago
parent
commit
472ae49065
  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 * human readable printing add 1 to the month. Time components are
* IEEE doubles to match Ecmascript Date behavior. * 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", printf("Datetime: %04d-%02d-%02d %02d:%02d:%02d.%03dZ\n",
(int) comp.year, (int) comp.month + 1, (int) comp.day, (int) comp.year, (int) comp.month + 1, (int) comp.day,
(int) comp.hours, (int) comp.minutes, (int) comp.seconds, (int) comp.hours, (int) comp.minutes, (int) comp.seconds,

Loading…
Cancel
Save