NetSDS::Const(3pm)

πŸ“¦
version 1.301 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

✨ NetSDS::Const ✨

okay so bestie, welcome to NetSDS::Const β€” the User Contributed Perl Documentation page for it, no cap πŸ’–


πŸ’… NAME

NetSDS::Const β€” common NetSDS constants πŸŽ€


🌸 SYNOPSIS

use NetSDS::Const;

print "XML encoding is " . XML_ENCODING;

print "Week contains " . INTERVAL_WEEK . " seconds";

like, that's it. that's the whole vibe. you use it and suddenly you have constants. iconic behavior honestly πŸ¦‹


🫢 DESCRIPTION

This module provides most common constants like default encoding and language, time intervals, etc.

literally just a little treasure chest of the stuff you keep needing everywhere. default encoding? got it. default language? got it. time intervals so you don't have to remember how many seconds are in a week? got it ✨


🌈 LANGUAGE AND ENCODINGS

the language codes bestie, all lined up:

  • LANG_BE β€” "be"
  • LANG_DE β€” "de"
  • LANG_EN β€” "en"
  • LANG_RU β€” "ru"
  • LANG_UK β€” "uk"
  • DEFAULT_LANG β€” "ru" in current version πŸ‘‘
  • DEFAULT_ENCODING β€” "UTF8"

⭐ XML CONSTANTS

the XML girlies:

  • XML_VERSION β€” 1.0
  • XML_ENCODING β€” "UTF-8"

πŸ• TIME INTERVALS

math but make it cute:

  • INTERVAL_MINUTE β€” 60 seconds
  • INTERVAL_HOUR β€” 3600 seconds
  • INTERVAL_DAY β€” 86400 seconds
  • INTERVAL_WEEK β€” 604800 seconds

like yes, that's a lot of seconds for a week, but that's what constants are for, so you never have to do the math yourself 🧚


πŸ’œ AUTHOR

  • Valentyn Solomko <val@pere.org.ua>
  • Michael Bochkaryov <misha@rattler.kiev.ua>

πŸ“œ LICENSE

Copyright (C) 2008-2009 Net Style Ltd.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


and that's the whole page bestie!! this lil writeup is from perl v5.32.1, dated 2021-12-26 β€” so yeah, it's been around a minute, but it still eats πŸ’…βœ¨ mwah, go forth and use your constants πŸŽ€