MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxDatePrintTimezone

Function fxDatePrintTimezone

xs/sources/xsDate.c:1437–1451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435}
1436
1437txString fxDatePrintTimezone(txString p, txInteger offset)
1438{
1439 *p++ = 'G';
1440 *p++ = 'M';
1441 *p++ = 'T';
1442 if (offset < 0) {
1443 offset = 0 - offset;
1444 *p++ = '-';
1445 }
1446 else
1447 *p++ = '+';
1448 p = fxDatePrint2Digits(p, offset / 60);
1449 p = fxDatePrint2Digits(p, offset % 60);
1450 return p;
1451}
1452
1453txString fxDatePrintYear(txString p, txInteger value)
1454{

Callers 3

fx_Date_auxFunction · 0.85

Calls 1

fxDatePrint2DigitsFunction · 0.85

Tested by

no test coverage detected