CleverDevs
به کانال کلوردوز خوش اومدین سعی میکنیم چیزایی که بنظر کاربردی هستن رو باهاتون به اشتراک بزاریم 🔥لینوکس 🔥برنامه نویسی فرانتاند 🔥برنامه نویسی بکاند 🔥اخبار تکنولوژی و... 💢~> @mmdrsdev
Show more📈 Analytical overview of Telegram channel CleverDevs
Channel CleverDevs (@cleverdevs) in the Farsi language segment is an active participant. Currently, the community unites 11 184 subscribers, ranking 10 989 in the Technologies & Applications category and 29 426 in the Iran region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 11 184 subscribers.
According to the latest data from 25 October, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by 345 over the last 30 days and by 9 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 34.06%. Within the first 24 hours after publication, content typically collects 15.50% reactions from the total number of subscribers.
- Post reach: On average, each post receives 3 810 views. Within the first day, a publication typically gains 1 734 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 27.
- Thematic interests: Content is focused on key topics such as کاراکتر, لینوکس, باگ, ویندوز, جا.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“به کانال کلوردوز خوش اومدین
سعی میکنیم چیزایی که بنظر کاربردی هستن رو باهاتون به اشتراک بزاریم
🔥لینوکس
🔥برنامه نویسی فرانتاند
🔥برنامه نویسی بکاند
🔥اخبار تکنولوژی و...
💢~> @mmdrsdev”
Thanks to the high frequency of updates (latest data received on 26 October, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
mkdir moment-time
و میریم داخل دایرکتوری
cd moment-time
خب حالا پروژه رو ایجاد و کتابخونه های مورد نیاز رو نصب میکنیم
npm init -y && npm i jalali-moment moment-timezone moment-duration-format
حالا باید یه فایل ایجاد کنیم که من اسمش رو میزارم index.js
الان میتونیم با دستور
node index.jsخروجی هارو داخل cmd یا terminal ببینیم اگه میخواین تو حالت watch مود باشه از کتابخونه nodemon استفاده کنین اول کتابخونه رو نصب کنین من رو حالت dev نصبش میکنم چون این کتابخونه برای حالت Production کارایی نداره
npm i --save-dev nodemon
و حالا میتونین با دستور زیر به nodmon بگین با هر تغییر یک بار کامپایلر js رو مجددا راه اندازی کنه.
nodemon index.jsنکته nodemon در تمامی زبان های مفسری میتونه مفید باشه و کار کنه من مثال های استفادش رو در زبان های دیگه بعدا براتون میزارم. حالا بریم سراغ مثال ها و خروجی هاشون اول کتابخونه هارو ایمپورت میکنیم من از commonjs استفاده میکنم میتونین از حالت es6 یا module هم استفاده کنین
const moment = require("jalali-moment"); require("moment-timezone"); require("moment-duration-format");
مثال اول دریافت تاریخ جاری و تایم لحظه ای
const localeTime = moment().locale("fa").tz("Asia/Tehran").format("D MMMM YYYY h:mm:ss a");
console.log(localeTime); // دی 2 1402 , 12:41:29 ق
با اضافه کردن D روز جاری از هفته هم لاگ میشه
مثال دوم میتونیم یه تاریخ رو بصورت تایم یونیکس یک تاریخ از آینده رو بدیم و سال ماه روز دقیقه و ثانیه باقی مونده رو مشاهده کنیم مثلا تاریخ سال تحویل رو بدیم و روزهای باقی مونده رو ببینیم مثال:
const moment = require("jalali-moment"); require("moment-timezone"); require("moment-duration-format");
const remaining = moment.duration(moment(1910281644738).diff(moment()));
console.log(`${remaining.format("y [سال], M [ماه], w [هفته], d [روز], h [ساعت], m [دقیقه]", { trim: "all" })}`);
// result
// 6 سال, 6 ماه, 3 هفته, 19 ساعت, 50 دقیقه
حالا میتونینم بگیم مثلا از آخرین آنلاینی یک یوزر داخل اپمون یا سایتمون چقد گذشته یا این کامنت کی داخل سایت گزاشته شده
const moment = require("jalali-moment"); require("moment-timezone"); require("moment-duration-format");
const startTime = 1700000689038;
const currentTime = moment();
const elapsedDuration = moment.duration(currentTime.diff(moment(startTime)));
const formattedDuration = elapsedDuration.format("y [سال], M [ماه], d [روز], h [ساعت], m [دقیقه], s [ثانیه]", { trim: "all" });
console.log(formattedDuration);
//result
// 1 ماه, 7 روز, 23 ساعت, 40 دقیقه, 34 ثانیه
این چند نمونه ساده بود بعدا تو پروژه ها ادونس تر از این کتابخونه ها استفاده میکنیم خواستم صرفا باهاشون آشنا باشین ضمننا من لینک این کتابخونه هارو میزارم میتونین کمی مطالعه بکنین
https://www.npmjs.com/package//moment-duration-format
https://www.npmjs.com/package/jalali-moment
https://www.npmjs.com/package/moment-timezone
#Gn
@CleverDevs
@CleverDevsGp