Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Spanish Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Modulo para Simplificar Fechas

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2008, 06:38 PM
Junior Member
 
Join Date: Apr 2007
Location: Catalonia
Posts: 40
Default Modulo para Simplificar Fechas

Hola:

En Basic4PPc las fecha se almacenan en TIC's . Cada Tic es 1/10.000.000 de segundo. Esto provoca que la funcion DateParse de lugar a numeros muy altos, que a veces son dificiles de manejar.

He creado un modulo para simplificar estos numeros y hacerlos mas pequeños.

La funcion DDateParse(Fecha) nos devuelve el numero de dias desde el 1 de Enero del 0001. A este numero le llamamos DTic's.

Con la funcion DDate(DTics) se pueden convertir los DTic's a fechas.

TicsToDtics(Tics) convierte Tics de BasicPp4 a DTics y DticsToTics lo hace a la inversa.



Espero que os sea util
Attached Files
File Type: bas DayTics.bas (909 Bytes, 27 views)
Reply With Quote
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0