GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Thursday, 19-Mar-2026 20:17:20 JST翠星石翠星石
    in reply to
    • SuperDicq
    • (NekoSock) Miya Ironami
    @SuperDicq @iro_miya Calculating dates manually is too hard.

    Use this GNU bash script instead;
    #!/bin/bash
    #argument needed
    [ "$#" -eq 1 ] || exit 1

    #Unix seconds
    birthdate=$(date -d "$1" +'%s')
    today=$(date -d today +'%s')
    seconds_between=$(($today-$birthdate))

    #years+months old, no decimal places, no repeats if 0 months
    printf "%s %s %s %s %s old today\n" $(units --output-format "%.2g" -- "$seconds_between seconds" 'years;months') | tr --squeeze-repeats ' '
    In conversationabout 4 days ago from freesoftwareextremist.compermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.