Google Calendar
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রাথমিক ক্যালেন্ডারে আজকের ঘটনাগুলি তালিকাভুক্ত করুন
function listAllEventsForToday() {
var calendarId = 'primary';
var now = new Date();
var startOfToday = new Date(now.getYear(), now.getMonth(), now.getDate(),
0, 0, 0);
var endOfToday = new Date(now.getYear(), now.getMonth(), now.getDate(),
23, 59, 29);
var calendarEvents = Calendar.Events.list(calendarId, {
timeMin: startOfToday.toISOString(),
timeMax: endOfToday.toISOString(),
singleEvents: true,
orderBy: 'startTime'
});
if (calendarEvents.items && calendarEvents.items.length > 0) {
for (var i = 0; i < calendarEvents.items.length; i++) {
var calendarEvent = calendarEvents.items[i];
if (calendarEvent.start.date) {
// All-day event.
var start = parseDate(calendarEvent.start.date);
console.log('%s (%s)', calendarEvent.summary,
start.toLocaleDateString());
} else {
var start = parseDate(calendarEvent.start.dateTime);
console.log('%s (%s)', calendarEvent.summary, start.toLocaleString());
}
}
} else {
console.log('No events found.');
}
}
বর্তমান ব্যবহারকারীর সব ক্যালেন্ডার পান
function getAllCalendars() {
var calendarList = Calendar.CalendarList.list();
for (var i = 0; i < calendarList.items.length; i++) {
var calendar = calendarList.items[i];
console.log('%s, %s', calendar.id, calendar.description);
}
}
বর্তমান ব্যবহারকারীর ক্যালেন্ডারের একটিতে ইভেন্ট তৈরি করুন
function createEvent() {
// You can find a Google Calendar's ID from its settings page.
var calendarId = 'INSERT_CALENDAR_ID_HERE';
// Nov 1, 2014 10:00:00 AM
var start = new Date(2014, 10, 1, 10, 0, 0);
// Nov 1, 2014 11:00:00 AM
var end = new Date(2014, 10, 1, 11, 0, 0);
var calendarEvent = {
summary: 'Run account performance report',
description: 'Run account performance report for Oct.',
start: {
dateTime: start.toISOString()
},
end: {
dateTime: end.toISOString()
},
attendees: [
{email: 'alice@example.com'},
{email: 'bob@example.com'}
],
// Red background. Use Calendar.Colors.get() for the full list.
colorId: 11
};
calendarEvent = Calendar.Events.insert(calendarEvent, calendarId);
console.log('New event with ID = %s was created.' + calendarEvent.getId());
}
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-11 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-01-11 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The code provides functions to interact with Google Calendar."],["`listAllEventsForToday` retrieves and displays all events scheduled for the current day from the primary calendar."],["`getAllCalendars` fetches and lists all calendars associated with the current user."],["`createEvent` allows the creation of a new event with specified details on a designated calendar."]]],[]]