| 833 | } |
| 834 | |
| 835 | static void date_string(timestamp_t date, int offset, struct strbuf *buf) |
| 836 | { |
| 837 | int sign = '+'; |
| 838 | |
| 839 | if (offset < 0) { |
| 840 | offset = -offset; |
| 841 | sign = '-'; |
| 842 | } |
| 843 | strbuf_addf(buf, "%"PRItime" %c%02d%02d", date, sign, offset / 60, offset % 60); |
| 844 | } |
| 845 | |
| 846 | /* |
| 847 | * Parse a string like "0 +0000" as ancient timestamp near epoch, but |
no test coverage detected