calendar 相关问题

日历是一种计算时间的系统,其中定义了一年的开始,长度和分部。该术语可以指用于操纵和显示日历数据的软件类或库,或者由人通过应用程序或操作系统用户界面管理的具有相关日期和时间的事件列表。

在 Wordpress 和 Elementor 上使用 FlatPickr 的日历和日期问题

所以目前我在 Elementor 上有一个表单,其中包含一个日期字段和两个时间字段。 日历需要使用德语,所以我使用了我在网上找到的 flatpickr 代码,它在大多数情况下都有效。

回答 0 投票 0

根据值更改单元格颜色,其中有单个单元格和多个单元格变化

我正在为学生创建日历样式的时间表。 我们有很多课程,所以为了简化时间表,我制作了一个星期天开始的日历表,日历中的那些课程由依赖下拉列表组成。 例如

回答 1 投票 0

如何从日期对象计算日期,如果我在周末,则在 java 中递增它?

我有 4 个日期,即今天(当前系统日期)、活动日期、quoteFinishFirstFolloupDate 和 quoteFinishSecondFollowupDate,我是根据某些标准计算的,但如果计算 d...

回答 1 投票 0

如何更改 tkcalendar 的日历小部件的按钮颜色?

我可以自定义日历所有部分的颜色,按钮除外。 我怎样才能自定义按钮的颜色呢? 我通读了文档以更改颜色,但我...

回答 0 投票 0

如何在 Rails 中建模和存储重复任务?

Rails 中的 Cron 解决方案很多而且非常好。那不是我在这里挣扎的问题。 相反,我遇到的麻烦是让用户创建自己的重复任务(比如提醒......

回答 4 投票 0

用事件python创建日历

我有一份打印成 pdf 文件的出席活动列表。我已经解析了数据并计算了每天的工作时间,以及该人当天是否忘记签入/签出。 看起来...

回答 0 投票 0

AppleScript 将 iCal 事件从一个日历移动到另一个日历

尝试编写将包含关键字的事件从一个日历移动到另一个日历但碰壁的脚本。任何指针?我目前正在做这样的事情: 告诉应用程序“日历” 移动((

回答 2 投票 0

如何使用 Java 将 Google 日历事件的所有者更改为另一个组织的用户?

如何使用 Java 将 Google 日历活动的所有者更改为另一个组织的用户? 我尝试使用“https://developers.google.com/calendar/api/v3/reference/events/move”API ...

回答 0 投票 0

如何获取 Microsoft Graph 的周期性日历事件实例

我需要获取特定时间段内的所有日历事件(例如过去两周)。如果此周期性会议是为

回答 0 投票 0

获取每个地区日期的自动化功能[重复]

我在 wordpress 中并编写了一些 php 以从 Gregorian 获取 Pesrian 和 Arabic 日期。 我看到了这个: 格式化 DateTime 对象,尊重 Locale::getDefault() 我想要一个函数来获得波斯语和...

回答 2 投票 0

如何将月份标题添加到我的日历(kizitonwose)

我正在使用 kizitonwose 的 CalendarView 库,我在 github 上使用指南做了一些东西。但是现在,我找不到一种方法可以将标题添加到我的日历中。我的XML; 我正在使用 kizitonwose 的 CalendarView 库,我在 github 上使用指南做了一些东西。但是现在,我找不到一种方法可以将标题添加到我的日历中。我的 xml; <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".Calendar"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" app:layout_constraintTop_toTopOf="parent"> <include android:id="@+id/monthHeaderContainer" layout="@layout/calendar_month_header_layout"/> <include android:id="@+id/titlesContainer" layout="@layout/calendar_day_titles_container" /> <com.kizitonwose.calendar.view.CalendarView android:id="@+id/calendarView" android:layout_width="match_parent" android:layout_height="wrap_content" app:cv_dayViewResource="@layout/calendar_day_layout" app:cv_monthHeaderResource="@layout/calendar_day_titles_container" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout> 如您所见,我尝试添加“calendar_month_header_layout”,但我无法将其放入 app:cv_monthHeaderResource,因为我在其中添加了一些不同的内容。这是我的片段文件; package com.ahmetkaan.kediy import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.core.view.children import androidx.core.view.forEachIndexed import com.ahmetkaan.kediy.databinding.CalendarDayLayoutBinding import com.ahmetkaan.kediy.databinding.FragmentCalendarBinding import com.kizitonwose.calendar.core.CalendarDay import com.kizitonwose.calendar.core.CalendarMonth import com.kizitonwose.calendar.core.DayPosition import com.kizitonwose.calendar.view.MonthDayBinder import com.kizitonwose.calendar.view.MonthHeaderFooterBinder import com.kizitonwose.calendar.view.ViewContainer import java.time.DayOfWeek import java.time.LocalDate import java.time.YearMonth class Calendar : Fragment() { private lateinit var binding: FragmentCalendarBinding private var selectedDate: LocalDate? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) } override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { binding = FragmentCalendarBinding.inflate(layoutInflater, container, false) val currentMonth = YearMonth.now() val startMonth = currentMonth.minusMonths(100) val endMonth = currentMonth.plusMonths(100) val daysOfWeek = DayOfWeek.values() binding.calendarView.setup(startMonth, endMonth, daysOfWeek[0]) binding.calendarView.scrollToMonth(currentMonth) class DayViewContainer(view: View) : ViewContainer(view) { val textView = CalendarDayLayoutBinding.bind(view).calendarDayText lateinit var day: CalendarDay init { view.setOnClickListener { if (day.position == DayPosition.MonthDate) { val currentSelection = selectedDate if (currentSelection == day.date) { selectedDate = null binding.calendarView.notifyDateChanged(currentSelection) } else { selectedDate = day.date binding.calendarView.notifyDateChanged(day.date) if (currentSelection != null) { binding.calendarView.notifyDateChanged(currentSelection) } } } } } } binding.calendarView.dayBinder = object : MonthDayBinder<DayViewContainer> { override fun create(view: View) = DayViewContainer(view) override fun bind(container: DayViewContainer, data: CalendarDay) { container.day = data val day = data val textView = container.textView textView.text = day.date.dayOfMonth.toString() if (day.position == DayPosition.MonthDate) { // Show the month dates. Remember that views are reused! textView.visibility = View.VISIBLE if (day.date == selectedDate) { //textView.setTextColor(Color.WHITE) textView.setBackgroundResource(R.drawable.selection_background) } else { //textView.setTextColor(Color.BLACK) textView.background = null } } else { // Hide in and out dates textView.visibility = View.INVISIBLE } } } class MonthViewContainer(view: View) : ViewContainer(view) { var titlesContianer = view as ViewGroup } binding.calendarView.monthHeaderBinder = object : MonthHeaderFooterBinder<MonthViewContainer> { override fun create(view: View) = MonthViewContainer(view) override fun bind(container: MonthViewContainer, data: CalendarMonth) { if (container.titlesContianer.tag == null) { container.titlesContianer.tag = data.yearMonth container.titlesContianer.children.map {it as TextView}.forEachIndexed { index, textView -> val title = when (index) { 0 -> "Pzt" 1 -> "Sal" 2 -> "Çar" 3 -> "Per" 4 -> "Cum" 5 -> "Cmt" 6 -> "Paz" else -> "" } textView.text = title } } } } return binding.root } } 如您所见,我正在使用它来设置与我的语言兼容的工作日名称。我如何在我的日历视图中添加月份标题(例如 2023 年 4 月或使用我的语言 Nisan 2023)?

回答 0 投票 0

导出“formatDate”(导入为“formatDate”)在“@fullcalendar/react”中找不到

当我编译时,这是我无法弄清楚的最后一件事。我相信这可能与版本有关 我尝试从“重写文件中的函数 {格式日期(事件。开始,{ ...

回答 0 投票 0

将日历事件添加到特定 Outlook 日历的语法?

我的 outlook 应用程序中有 2 个日历 - 每个都与不同的电子邮件帐户相关联。一个是交换帐户,另一个是 IMAP。 我正在尝试编写将事件添加到 exc 的 applescript ...

回答 1 投票 0

当您单击日历中的一天时,应该会出现仅针对该天的约会列表

晚上好, 我们需要弄清楚如何制作日历,以便当您单击某一天时,仅显示当天的约会,如您在以下演示屏幕截图中所见: C……

回答 0 投票 0

公历到波斯历转换 - 将月份输出从 finglish 更改为 perisan

在 wordpress 中,我已经将格里高利历日期正确转换为波斯语,但我的代码以英语(菲式英语)返回 perisan 月,例如它返回 Farvardin 而不是 فروردین 和其他 11 个月...

回答 2 投票 0

当我尝试将数据推送到数组中时,我在数组中未定义

请谁能帮我解决这个问题? 我已经尝试解决这个问题 3 天了,jquery Ajax 对我来说是个新手。 我想使用 ...

回答 2 投票 0

设置提醒的警报管理器在我的自定义日历提供程序中不起作用

我曾经使用 os 的 android 日历提供程序,但现在我使用我的自定义日历,并且我在我的应用程序中克隆了 android 日历提供程序的 os 代码来自定义它。 我有 2 个应用程序,他们与他们一起工作...

回答 0 投票 0

以正确格式打印日历(Python)

我目前正在尝试解决一个问题,该问题需要用户输入月份和年份,程序将为该特定月份生成日历的摘录。

回答 1 投票 0

JavaScript 以更改输入类型 =“日期”格式和值

这道题可能有点挑战性: 如何使用 JavaScript 将 input type="date" 格式更改为:YYYY-MM-DD,无论用户选择哪个日期,日期都需要转换...

回答 1 投票 0

夏令时问题

我是一个新手,正在使用别人的旧 Google 应用程序脚本,该脚本将从 Google 表单收集的事件信息添加到事件日历中。 一切都很好,只是时间缩短了一个小时。例子: ...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.