C/Front and Duration

IHateLinux
Member Posts: 223
Hi,
has anyone a hint how to get a duration field in milliseconds over C/Front?
Currently we get them language dependent (e.g. ENU - 2 days 15 minutes OR DEU - 2 Tage 15 Minuten).
But we need the values to store in a SQL database as milliseconds and i like to avoid to write a converter for any existing language (e.g. Danish, Spanish,...).
Thanks a lot
Rainer
has anyone a hint how to get a duration field in milliseconds over C/Front?
Currently we get them language dependent (e.g. ENU - 2 days 15 minutes OR DEU - 2 Tage 15 Minuten).
But we need the values to store in a SQL database as milliseconds and i like to avoid to write a converter for any existing language (e.g. Danish, Spanish,...).
Thanks a lot
Rainer
0
Comments
-
Hello,
Just.. a quick look in the C/AL help, might be useful for you..BIGINTEGER
Use this data type to store very large whole numbers. This data type is a 64 bit integer. You must add an L to the constant definition to inform C/AL that the integer must be interpreted and treated as a BIGINTEGER.
DURATION
Use this data type to represent the difference between two datetimes, in milliseconds. This value can be negative. It is a 64 bit integer.
DATETIME-DATETIME=DURATION
DATETIME-DURATION=DATETIME
DATETIME+DURATION=DATETIME
Linux -- "It's computing, Rainer, but not as we know it"Met vriendelijke groet, best regards,
Rvduuren0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions