<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/date, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-10-06T09:12:24Z</updated>
<entry>
<title>date: Fix a few nits.</title>
<updated>2024-10-06T09:12:24Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-09-04T17:32:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d2c02cfae55a1ffb179b55f45a89606845e1acfb'/>
<id>urn:sha1:d2c02cfae55a1ffb179b55f45a89606845e1acfb</id>
<content type='text'>
* Don't use `asprintf()` when `strdup()` can do the job just as well.
* Fix a couple of typos in a comment.

Fixes:		eeb04a736cb9
MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D46533

(cherry picked from commit a8ddd1926a34fc20970d9ceaad71b31fc414b1c5)

date: Documentation nits.

* Fix spurious capitalization.
* Fix inconsistent quoting.
* Use `Dq` rather than ASCII double quotes.

MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	0mp
Differential Revision:	https://reviews.freebsd.org/D46622

(cherry picked from commit 355ebf80b1ed98cf7ca9c51ce7e3e6dcb376853d)
</content>
</entry>
<entry>
<title>date.1: Note that nanosecond support is to appear first in 14.1</title>
<updated>2024-05-02T20:52:38Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-05-02T20:45:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f609ff5a499a4cf43658e0758866957463fb6fe8'/>
<id>urn:sha1:f609ff5a499a4cf43658e0758866957463fb6fe8</id>
<content type='text'>
Sponsored by:	Klara, Inc.

(cherry picked from commit c40e0bff7257e6d239779a5106dc67429941f63f)
</content>
</entry>
<entry>
<title>date: Correctly check outcome of mktime().</title>
<updated>2024-05-02T20:52:37Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-04-28T17:12:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2ec4bd306ac786222bd5a6522b45e762e968b31'/>
<id>urn:sha1:f2ec4bd306ac786222bd5a6522b45e762e968b31</id>
<content type='text'>
X-MFC-With:	7b390cb63689
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D44982

(cherry picked from commit dafb424b8d44c7fdc9cfe876a79aad05c438def0)
</content>
</entry>
<entry>
<title>date: Fix tests by initializing timespec structure</title>
<updated>2024-05-02T20:52:37Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-04-26T15:19:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4fd988e652e5045f73df0794bfba870c04d39830'/>
<id>urn:sha1:4fd988e652e5045f73df0794bfba870c04d39830</id>
<content type='text'>
The tests related to nanosecond support were failing on amd64 due to
uninitialized timespec structure.

Fixes:		eeb04a736cb9 date: Add support for nanoseconds
Reviewed by:	markj
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44975

(cherry picked from commit 7b390cb636899582243e4daa8edbdb30d686d9fb)
</content>
</entry>
<entry>
<title>date: Add support for nanoseconds</title>
<updated>2024-05-02T20:52:37Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2024-04-21T21:25:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=10c4885f368ec70c688e2088c3840245ec27d958'/>
<id>urn:sha1:10c4885f368ec70c688e2088c3840245ec27d958</id>
<content type='text'>
This patch introduces support for a conversion specification for
nanoseconds.

The format of %N is meant to be compatible with that of GNU date.

The nanoseconds conversion specification is implemented directly in
date(1) instead of libc (in strftime(3)) to avoid introducing
non-standard functions to libc at this time and modifying struct tm.

Apart from introducing the nanoseconds conversion specification, this
patch brings the following changes:

- The "ns" format for ISO 8061 dates is now unlocked. E.g., date -Ins
  prints:
      2024-04-22T12:20:28,763742224+02:00
- The -r flag when fed a file is now aware of the nanosecond part of the last
  modification time.
- date(1) is now able to set the time with nanosecond precision. It is
  not possible as of now to do that by specifying nanoseconds directly
  via the command-line arguments. Instead, the -r flag can be used.
- date(1) is now using the clock_gettime(3) family of functions instead
  of ctime(3) family of functions where possible.

Reviewed by:	des, markj
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44905

(cherry picked from commit eeb04a736cb9c07d191af886e25d5f198824658e)
</content>
</entry>
<entry>
<title>date(1): Grammar fixes</title>
<updated>2024-05-02T20:52:37Z</updated>
<author>
<name>Chia-Jung Chang</name>
<email>maluma110020036@gapp.nthu.edu.tw</email>
</author>
<published>2024-01-12T01:58:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a7096a69efcda1451112cd2a65e75bc9e19ef5e5'/>
<id>urn:sha1:a7096a69efcda1451112cd2a65e75bc9e19ef5e5</id>
<content type='text'>
Event:		Advanced UNIX programming course (Fall'23) at NTHU
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1035

(cherry picked from commit 8e9fc2d9f657f99ae368524868dd04080bc390bf)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line nroff pattern</title>
<updated>2023-08-16T17:55:15Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b2c76c41be32f904179efed29c0ca04d53f3996c'/>
<id>urn:sha1:b2c76c41be32f904179efed29c0ca04d53f3996c</id>
<content type='text'>
Remove /^\.\\"\s*\$FreeBSD\$$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3e7694832e81d7a904a10f525f8797b753bf0d3'/>
<id>urn:sha1:b3e7694832e81d7a904a10f525f8797b753bf0d3</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
</entry>
</feed>
