Re: How to get the current time in time zone represented by strings like +0100?

2024-05-15 Thread Grisha Levit
On Tue, May 14 2024 at 16:05 Peng Yu wrote: > For example, in the time zone represented by +0100, how to get its > current time from date using '+0100' as input? Thanks. Use the offset to create a timezone specification, supplied in the TZ environment variable. TZ='XXX-01:00' date The `XXX`

Re: How to get the current time in time zone represented by strings like +0100?

2024-05-16 Thread Grisha Levit
On Thu, May 16, 2024, 09:31 Peng Yu wrote: > So +02:00 in your example is actually -0200 in my example, can date > take the meaning "+" as in my original example? Nope. Or I will have to flip the signs myself? > Yes. I think you will find this is all described in the manual at https://www.gnu

[PATCH] build: fix LIBCRYPTO_SONAME value with config cache

2025-02-06 Thread Grisha Levit
* configure.ac (LIBCRYPTO_SONAME): Store library name in cache so we do not end up with an empty value for it when a cache file is used. --- Fixes: $ ./configure -C >/dev/null && grep LIBCRYPTO_SONAME config.status D["LIBCRYPTO_SONAME"]=" \"libcrypto.so.3\"" $ ./configure -C >/dev/null

macOS build fails without libintl

2025-07-29 Thread Grisha Levit
On macOS, using a default configure (without --with-libintl-prefix) causes link errors due to missing frameworks used by localename-unsafe: $ ./configure ... $ grep -w -e LIBINTL -e USE_NLS config.status S["USE_NLS"]="no" S["LIBINTL"]="" $ make src/du V=1 gcc -Wno-fo