Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 31st July 2016, 14:02
jojovalenton jojovalenton is offline
Senior Member
 
Join Date: Aug 2007
Posts: 185
jojovalenton is on a distinguished road
Baan: InforLN FP7 - DB: SQL Server 2008 R2 - OS: Window Server 2008 R2
leap year
Baan: ERP LN 6.1 FP7 (Infor ERP 10.1)
C/S: Both

hi,

is there any function in LN tools that identify if the current system year is a leap year? thanks in advance for any reply.

regards,
jojo
Reply With Quote
  #2  
Old 1st August 2016, 08:52
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 729
JaapJD will become famous soon enoughJaapJD will become famous soon enough
Baan: BaanIV, BaanERP, ERP LN 6.1 - DB: Oracle, SQL Server - OS: Unix, Windows
You can use date.to.num():
Code:
if date.to.num(year, 2, 29) < 0 then
	message(sprintf$("%d is no leap year", year))
endif
Reply With Quote
  #3  
Old 2nd August 2016, 07:51
jojovalenton jojovalenton is offline
Senior Member
 
Join Date: Aug 2007
Posts: 185
jojovalenton is on a distinguished road
Baan: InforLN FP7 - DB: SQL Server 2008 R2 - OS: Window Server 2008 R2
hi jaap,

thanks for the script.

regards,
jojo
Reply With Quote
  #4  
Old 2nd August 2016, 22:29
benito's Avatar
benito benito is offline
Guru
 
Join Date: Jan 2002
Location: Eastern US
Posts: 517
benito is on a distinguished road
Baan: ERPLn 10.2.1 / BaanIVc4 - DB: Oracle11/Informix - OS: Unix/Linux
another one

boolean

tccom.dll0350.is.leap.year( long i.year )
Reply With Quote
  #5  
Old 3rd August 2016, 16:45
jojovalenton jojovalenton is offline
Senior Member
 
Join Date: Aug 2007
Posts: 185
jojovalenton is on a distinguished road
Baan: InforLN FP7 - DB: SQL Server 2008 R2 - OS: Window Server 2008 R2
hi benito,

thanks.
Reply With Quote
  #6  
Old 3rd August 2016, 18:17
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,653
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
date 'n time

Hello,

Code:
Library tccomdll0350

Date and Time

(16 Functions available)
 
Function Summary   
domain tcdate  
tccom.dll0350.add.date.to.utc.date( domain tcdate i.utc.date, long i.nyears, long i.nmonths, long i.ndays, long i.nhours, long i.nminutes, long i.nseconds )
 
void  
tccom.dll0350.convert.date.to.string( domain tcccp.date i.date, ref domain tcmcs.str10 o.date.string )
 
void  
tccom.dll0350.convert.time.value.to.string( domain tcmcs.long i.time, ref domain tcmcs.str8 o.time.string )
 
void  
tccom.dll0350.convert.utc.date.to.string( domain tcdate i.date, ref domain tcmcs.str20 o.date.time.string )
 
void  
tccom.dll0350.convert.utc.date.to.string.local( domain tcdate i.date, ref domain tcmcs.str20 o.date.time.string )
 
long  
tccom.dll0350.date.time.to.utc( long i.days, long i.seconds, ref long o.utc )
 
boolean  
tccom.dll0350.end.of.day( domain tcdate i.date.time, ref domain tcdate o.end.day.date.time )
 
long  
tccom.dll0350.get.last.day.of.month( long i.month, long i.year )
 
boolean  
tccom.dll0350.is.leap.year( long i.year )
 
boolean  
tccom.dll0350.start.of.day( domain tcdate i.date.time, ref domain tcdate o.start.day.date.time )
 
domain tcdate  
tccom.dll0350.utc.date.add.days( domain tcdate i.utc.date, long i.ndays )
 
domain tcdate  
tccom.dll0350.utc.date.add.hours( domain tcdate i.utc.date, long i.nhours )
 
domain tcdate  
tccom.dll0350.utc.date.add.minutes( domain tcdate i.utc.date, long i.nminutes )
 
domain tcdate  
tccom.dll0350.utc.date.add.months( domain tcdate i.utc.date, long i.nmonths )
 
domain tcdate  
tccom.dll0350.utc.date.add.seconds( domain tcdate i.utc.date, long i.nseconds )
 
domain tcdate  
tccom.dll0350.utc.date.add.years( domain tcdate i.utc.date, long i.nyears )
Regards
__________________
//Bernd
Reply With Quote
  #7  
Old 4th August 2016, 11:02
jojovalenton jojovalenton is offline
Senior Member
 
Join Date: Aug 2007
Posts: 185
jojovalenton is on a distinguished road
Baan: InforLN FP7 - DB: SQL Server 2008 R2 - OS: Window Server 2008 R2
hi bdittmar,

thanks for your additional really helpful inputs.

regards,
jojo
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing fiscal year due to Acquisition SujithKumar Finance, Invoicing and Integration 2 23rd July 2012 15:59
Year end change Robert Williams Finance, Invoicing and Integration 2 27th October 2007 23:04
"long" business year for the first year? ath999 Finance, Invoicing and Integration 0 5th June 2007 12:47
Close Year Provisional - Opening Balances in P&L Accounts Scott2001 Finance, Invoicing and Integration 2 30th October 2004 06:34
Year End Close Scott2001 Finance, Invoicing and Integration 0 5th December 2003 21:57


All times are GMT +2. The time now is 13:04.


©2001-2017 - Baanboard.com - Baanforums.com