Welcome Guest ( Log In | Register )

Bump TopicReply to this topicRSS feed Start new topic Start Poll

Outline · [ Standard ] · Linear+

> How to make my own custom google calendar, Any development tools/API/Guide for it?

kc9988
post Dec 20 2018, 05:46 PM, updated 2w ago

New Member
*
Group: Junior Member
Posts: 40

Joined: Aug 2017
Hi,

Does anyone know to make( e.g: yearly personal//family birthdays, yearly or lunar event until year of 21xx) all lumpsum event/note into custom google calendar which easier for import.

I saw there're many custom-made google calendar available (like support lunar calendar) for us to subscribe or import. The point is how they actually made this kind of calendar. I don think they manually add it. Any development tool/API to do this? I need some advices on starting point which I don know about it.

This post has been edited by kc9988: Dec 20 2018, 05:51 PM
hata_ph
post Dec 20 2018, 05:54 PM

Casual
***
Group: Junior Member
Posts: 408

Joined: May 2006
Why not google search?
jmas
post Dec 20 2018, 06:02 PM

Casual
***
Group: Junior Member
Posts: 318

Joined: Mar 2010
QUOTE(kc9988 @ Dec 20 2018, 05:46 PM)
Hi,

Does anyone know to make( e.g: yearly personal//family birthdays, yearly or lunar event until year of 21xx) all lumpsum event/note into custom google calendar which easier for import.

I saw there're many custom-made google calendar available (like support lunar calendar) for us to subscribe or import. The point is how they actually made this kind of calendar.  I don think they manually add it. Any development tool/API to do this? I need some advices on starting point which I don know about it.
*
You can just import all then filter out which you dont want

user posted image
kc9988
post Dec 20 2018, 06:09 PM

New Member
*
Group: Junior Member
Posts: 40

Joined: Aug 2017
QUOTE(hata_ph @ Dec 20 2018, 05:54 PM)
Why not google search?
*
I did that. None of them provide guide.
kc9988
post Dec 20 2018, 06:11 PM

New Member
*
Group: Junior Member
Posts: 40

Joined: Aug 2017
QUOTE(jmas @ Dec 20 2018, 06:02 PM)
You can just import all then filter out which you dont want

user posted image
*
The point is I don want to import anymore. Not rely on other guys's calendar. I just want to make my own custom calendar until year 21xx . Any development tools to do tat, because it is impossible for me to manually add events until year 21xx

This post has been edited by kc9988: Dec 20 2018, 06:13 PM
jmas
post Dec 20 2018, 06:20 PM

Casual
***
Group: Junior Member
Posts: 318

Joined: Mar 2010
QUOTE(kc9988 @ Dec 20 2018, 06:11 PM)
The point is I don want to import anymore. Not rely on other guys's calendar. I just want to make my own custom calendar until year 21xx . Any development tools to do tat, because it is impossible for me to manually add events until year 21xx
*
then you'll have to add all date manually on your own.
WongGei
post Dec 20 2018, 06:43 PM

Enthusiast
*****
Group: Senior Member
Posts: 840

Joined: Dec 2007
From: Kuala Lumpur
user posted image

user posted image

This post has been edited by WongGei: Dec 20 2018, 06:45 PM
ngaisteve1
post Jan 8 2019, 06:11 PM

Trainer & Web Developer
*******
Group: Senior Member
Posts: 6,416

Joined: Dec 2005
From: Kuala Lumpur


QUOTE(kc9988 @ Dec 20 2018, 06:46 PM)
Hi,

Does anyone know to make( e.g: yearly personal//family birthdays, yearly or lunar event until year of 21xx) all lumpsum event/note into custom google calendar which easier for import.

I saw there're many custom-made google calendar available (like support lunar calendar) for us to subscribe or import. The point is how they actually made this kind of calendar.  I don think they manually add it. Any development tool/API to do this? I need some advices on starting point which I don know about it.
*
just embed it?

user posted image
mentalhealth.my
post Jan 8 2019, 08:15 PM

Getting Started
**
Group: Junior Member
Posts: 75

Joined: Sep 2015
There is a computer algorithm (quite short) to build your own calendar, just in case you are interested.
mentalhealth.my
post Jan 8 2019, 08:33 PM

Getting Started
**
Group: Junior Member
Posts: 75

Joined: Sep 2015
This is a sample code to generate calendar of any given year (executable online)
http://tpcg.io/gA8Czx

Just change PointYear value to any year you want.
Hopefully this can be an idea for you.

CODE

program Calendar;
uses CRT;
{
 Modified for Lowyat.NET  
 Courtesy bluebat from github
}
const
 PointYear=2019;
 BeginMonth=1;
 EndMonth=12;
 
var
 MonthDays:array [1..12] of integer;
 KnownYear,FirstOrder:integer;
 Year,Month,LDay,RDay,LOrder,ROrder:integer;
 HaveNext:boolean;

function YearDays(Year:integer):integer;
begin
 if (Year mod 4)=0 then
   if (Year mod 100)=0 then
       if (Year mod 400)=0 then YearDays:=2 else YearDays:=1
       else Yeardays:=2
   else YearDays:=1
end;

procedure DayLine(var Day:integer;Order:integer);
begin
 repeat
   if Day = 0 then Write('':5*Order);
   Day:=Day+1;
   if Day <= MonthDays[Month] then Write(Day:2,'   ') else Write(' ':5)
 until (Order + Day) mod 7 = 0
end;

begin
 WriteLn('This program will show a calendar of a pointed year.');
 WriteLn;
 for Month:=1 to 12 do
   case Month of
       1,3,5,7,8,10,12 :MonthDays[Month]:=31;
       4,6,9,11 :MonthDays[Month]:=30;
       2 :MonthDays[Month]:=28
   end;

 KnownYear:=1;
 FirstOrder:=1;
 for Year:=KnownYear to PointYear - 1 do
   FirstOrder:=FirstOrder + YearDays(Year);
 FirstOrder:=FirstOrder mod 7;
 if YearDays(PointYear) = 2 then MonthDays[2]:=29;

 WriteLn;
 if BeginMonth <> EndMonth then Write(' ':30);
 WriteLn('*** ',PointYear,' ***');
 Month:=1;
 repeat
   if Month >= BeginMonth then
   begin
     HaveNext:=Month + 1 <= EndMonth;
     WriteLn;
     Write('=== ',Month:2,' ===');
     if HaveNext then WriteLn(' ':29,'=== ',Month+1:2,' ===') else WriteLn;
     WriteLn;
     Write('SUN  MON  TUE  WED  THR  FRI  SAT      ');
     if HaveNext then WriteLn('SUN  MON  TUE  WED  THR  FRI  SAT') else WriteLn;
     LDay:=0;
     LOrder:=FirstOrder;
     if HaveNext then
     begin
       FirstOrder:=(FirstOrder + MonthDays[month]) mod 7;
       RDay:=0;
       ROrder:=FirstOrder;
     end else RDay:=32;

     repeat
       DayLine(LDay,LOrder);
       Write(' ':4);
       if HaveNext then
       begin
         Month:=Month + 1;
         DayLine(RDay,ROrder);
         Month:=Month - 1
       end;
       WriteLn;
     until (LDay > MonthDays[Month]) and (RDay > MonthDays[Month + 1]);

     Month:=Month + 1
   end;
   FirstOrder:=(FirstOrder + MonthDays[Month]) mod 7;
   Month:=Month + 1
 until Month > EndMonth;
end.


In case you need someone to write a computer logic from scratch, I can help you for a fee:
https://forum.lowyat.net/index.php?showtopi...post&p=91423552


This post has been edited by mentalhealth.my: Jan 8 2019, 08:41 PM


Attached thumbnail(s)
Attached Image
mentalhealth.my
post Jan 8 2019, 08:50 PM

Getting Started
**
Group: Junior Member
Posts: 75

Joined: Sep 2015
QUOTE(kc9988 @ Dec 20 2018, 06:11 PM)
The point is I don want to import anymore. Not rely on other guys's calendar. I just want to make my own custom calendar until year 21xx . Any development tools to do tat, because it is impossible for me to manually add events until year 21xx
*
Well, this is a calendar of the year 2199:

CODE
                             *** 2199 ***

===  1 ===                             ===  2 ===

SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT
          1    2    3    4    5                                 1    2  
6    7    8    9   10   11   12        3    4    5    6    7    8    9  
13   14   15   16   17   18   19       10   11   12   13   14   15   16  
20   21   22   23   24   25   26       17   18   19   20   21   22   23  
27   28   29   30   31                 24   25   26   27   28            

===  3 ===                             ===  4 ===

SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT
                         1    2             1    2    3    4    5    6  
3    4    5    6    7    8    9        7    8    9   10   11   12   13  
10   11   12   13   14   15   16       14   15   16   17   18   19   20  
17   18   19   20   21   22   23       21   22   23   24   25   26   27  
24   25   26   27   28   29   30       28   29   30                      
31                                                                        

===  5 ===                             ===  6 ===


SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

               1    2    3    4                                      1  

5    6    7    8    9   10   11        2    3    4    5    6    7    8  

12   13   14   15   16   17   18        9   10   11   12   13   14   15  

19   20   21   22   23   24   25       16   17   18   19   20   21   22  

26   27   28   29   30   31            23   24   25   26   27   28   29  

                                      30                                


===  7 ===                             ===  8 ===


SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

     1    2    3    4    5    6                            1    2    3  

7    8    9   10   11   12   13        4    5    6    7    8    9   10  

14   15   16   17   18   19   20       11   12   13   14   15   16   17  

21   22   23   24   25   26   27       18   19   20   21   22   23   24  

28   29   30   31                      25   26   27   28   29   30   31  

                                                                         


===  9 ===                             === 10 ===


SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

1    2    3    4    5    6    7                  1    2    3    4    5  

8    9   10   11   12   13   14        6    7    8    9   10   11   12  

15   16   17   18   19   20   21       13   14   15   16   17   18   19  

22   23   24   25   26   27   28       20   21   22   23   24   25   26  

29   30                                27   28   29   30   31            


=== 11 ===                             === 12 ===


SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

                         1    2        1    2    3    4    5    6    7  

3    4    5    6    7    8    9        8    9   10   11   12   13   14  

10   11   12   13   14   15   16       15   16   17   18   19   20   21  

17   18   19   20   21   22   23       22   23   24   25   26   27   28  

24   25   26   27   28   29   30       29   30   31


bruce.gif

I am sure you can look for the source code in other programming language. The one I gave was Pascal (modified from someone's work)

This post has been edited by mentalhealth.my: Jan 8 2019, 08:51 PM
kc9988
post Jan 11 2019, 05:08 PM

New Member
*
Group: Junior Member
Posts: 40

Joined: Aug 2017
QUOTE(mentalhealth.my @ Jan 8 2019, 08:50 PM)
Well, this is a calendar of the year 2199:

CODE
                             *** 2199 ***

===  1 ===                             ===  2 ===

SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT
          1    2    3    4    5                                 1    2  
6    7    8    9   10   11   12        3    4    5    6    7    8    9  
13   14   15   16   17   18   19       10   11   12   13   14   15   16  
20   21   22   23   24   25   26       17   18   19   20   21   22   23  
27   28   29   30   31                 24   25   26   27   28            

===  3 ===                             ===  4 ===

SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT
                         1    2             1    2    3    4    5    6  
3    4    5    6    7    8    9        7    8    9   10   11   12   13  
10   11   12   13   14   15   16       14   15   16   17   18   19   20  
17   18   19   20   21   22   23       21   22   23   24   25   26   27  
24   25   26   27   28   29   30       28   29   30                      
31                                                                        

===  5 ===                             ===  6 ===
SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

               1    2    3    4                                      1  

5    6    7    8    9   10   11        2    3    4    5    6    7    8  

12   13   14   15   16   17   18        9   10   11   12   13   14   15  

19   20   21   22   23   24   25       16   17   18   19   20   21   22  

26   27   28   29   30   31            23   24   25   26   27   28   29  

                                      30                                
===  7 ===                             ===  8 ===
SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

     1    2    3    4    5    6                            1    2    3  

7    8    9   10   11   12   13        4    5    6    7    8    9   10  

14   15   16   17   18   19   20       11   12   13   14   15   16   17  

21   22   23   24   25   26   27       18   19   20   21   22   23   24  

28   29   30   31                      25   26   27   28   29   30   31  

                                                                         
===  9 ===                             === 10 ===
SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

1    2    3    4    5    6    7                  1    2    3    4    5  

8    9   10   11   12   13   14        6    7    8    9   10   11   12  

15   16   17   18   19   20   21       13   14   15   16   17   18   19  

22   23   24   25   26   27   28       20   21   22   23   24   25   26  

29   30                                27   28   29   30   31            
=== 11 ===                             === 12 ===
SUN  MON  TUE  WED  THR  FRI  SAT      SUN  MON  TUE  WED  THR  FRI  SAT

                         1    2        1    2    3    4    5    6    7  

3    4    5    6    7    8    9        8    9   10   11   12   13   14  

10   11   12   13   14   15   16       15   16   17   18   19   20   21  

17   18   19   20   21   22   23       22   23   24   25   26   27   28  

24   25   26   27   28   29   30       29   30   31


bruce.gif

I am sure you can look for the source code in other programming language.  The one I gave was Pascal (modified from someone's work)
*
Thanks for sharing, will look into it.
Besides, I found some open-source android app source in github which able to create event + loop every years based on either lunar or solar calendar . I think I will modify a bit to fit my needs.

This post has been edited by kc9988: Jan 11 2019, 05:11 PM
mentalhealth.my
post Jan 15 2019, 11:10 PM

Getting Started
**
Group: Junior Member
Posts: 75

Joined: Sep 2015
QUOTE(kc9988 @ Jan 11 2019, 05:08 PM)
Thanks for sharing, will look into it.
Besides, I found some open-source android app source in github which able to create event + loop every years based on either lunar or solar calendar . I think I will modify a bit to fit my needs.
*
Good luck with your code modification. I am glad you found the android app source.

Bump TopicReply to this topicTopic OptionsStart new topic
 

Switch to:
| Lo-Fi Version
0.0550sec    5.45    6 queries    GZIP Disabled
Time is now: 18th January 2019 - 11:58 PM