vbforumscommunity / sqlite3win32 Goto Github PK
View Code? Open in Web Editor NEWVB-friendly sqlite3 library with __stdcall calling convention
VB-friendly sqlite3 library with __stdcall calling convention
The date conversions for time entries before the OADate era are determined incorrectly. I suggest that to change the methods as follows.
Public Function CDateToJulianDay(ByVal DateValue As Date) As Double
If CDbl(DateValue) >= 0 Then
CDateToJulianDay = CDbl(DateValue) + JULIANDAY_OFFSET
Else
Dim Temp As Double
Temp = -Int(-CDbl(DateValue))
CDateToJulianDay = Temp - (CDbl(DateValue) - Temp) + JULIANDAY_OFFSET
End If
End Function
Public Function CJulianDayToDate(ByVal JulianDay As Double) As Date
Const MIN_DATE = -657434# + JULIANDAY_OFFSET ' 01/01/0100
Const MAX_DATE = 2958465# + JULIANDAY_OFFSET ' 12/31/9999
'or raise an error
If JulianDay < MIN_DATE Or JulianDay > MAX_DATE Then Exit Function
If JulianDay >= JULIANDAY_OFFSET Then
CJulianDayToDate = CDate(JulianDay - JULIANDAY_OFFSET)
Else
Dim DateDbl As Double, Temp As Double
DateDbl = JulianDay - JULIANDAY_OFFSET
Temp = Int(DateDbl)
CJulianDayToDate = CDate(Temp + (Temp - DateDbl))
End If
End Function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.