[Gambas-user] DateChooser strange behavior

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Dec 11 20:57:07 CET 2015


OK, so you mean this:

Print Now; " -> "; Date(Now)
------------------------------

05/16/2002 15:10:59 -> 05/16/2002


There was some reason for this change... documentation is not accurate in
this part.
Perhaps it's Print that converts date part to date&time format before
displaying it.


Jussi



On Fri, Dec 11, 2015 at 8:46 PM, Gianluigi <bagonergi at ...626...> wrote:

> If I use "Date" I give only the date and not hours, minutes and seconds
> although it is written as zero.
> It is the documentation that says so.
>
> Regards
> Gianluigi
>
> 2015-12-11 18:34 GMT+01:00 Jussi Lahtinen <jussi.lahtinen at ...626...>:
>
> > Date() returns only date part. See Time().
> >
> >
> > Jussi
> >
> > On Fri, Dec 11, 2015 at 5:53 PM, Gianluigi <bagonergi at ...626...> wrote:
> >
> > > Another anomaly
> > > Print Now; " -> "; Date(Now)
> > > return
> > > 11/12/2015 16:47:16 -> 11/12/2015 00:00:00
> > > Regards
> > > Gianluigi
> > >
> > > [System]
> > > Gambas=3.8.3
> > > OperatingSystem=Linux
> > > Kernel=3.19.0-39-generic
> > > Architecture=x86_64
> > > Distribution=Ubuntu 14.04.3 LTS
> > > Desktop=GNOME
> > > Theme=Gtk
> > > Language=it_IT.UTF-8
> > > Memory=15976M
> > >
> > > [Libraries]
> > > Cairo=libcairo.so.2.11301.0
> > > Curl=libcurl.so.4.3.0
> > > DBus=libdbus-1.so.3.7.6
> > > GStreamer=libgstreamer-0.10.so.0.30.0
> > > GStreamer=libgstreamer-1.0.so.0.204.0
> > > GTK+2=libgtk-x11-2.0.so.0.2400.23
> > > GTK+3=libgtk-3.so.0.1000.8
> > > OpenGL=libGL.so.1.2.0
> > > Poppler=libpoppler.so.44.0.0
> > > QT4=libQtCore.so.4.8.6
> > > QT5=libQt5Core.so.5.2.1
> > > SDL=libSDL-1.2.so.0.11.4
> > >
> > > [Environment]
> > > CLUTTER_IM_MODULE=xim
> > > COMPIZ_BIN_PATH=/usr/bin/
> > > COMPIZ_CONFIG_PROFILE=ubuntu
> > > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-iZt11q855q
> > > DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
> > > DESKTOP_SESSION=ubuntu
> > > DISPLAY=:0
> > > GB_GUI=gb.qt4
> > > GDMSESSION=ubuntu
> > > GDM_LANG=it
> > > GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
> > > GIO_LAUNCHED_DESKTOP_FILE_PID=5725
> > > GNOME_DESKTOP_SESSION_ID=this-is-deprecated
> > > GNOME_KEYRING_CONTROL=/run/user/1000/keyring-gsGwmn
> > > GNOME_KEYRING_PID=1372
> > > GPG_AGENT_INFO=/run/user/1000/keyring-gsGwmn/gpg:0:1
> > > GTK_IM_MODULE=ibus
> > > GTK_MODULES=overlay-scrollbar:unity-gtk-module
> > > HOME=/home/<hostname>
> > > IM_CONFIG_PHASE=1
> > > INSTANCE=
> > > JOB=dbus
> > > LANG=it_IT.UTF-8
> > > LANGUAGE=it
> > > LOGNAME=<hostname>
> > > MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
> > >
> > >
> >
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
> > > PWD=/home/<hostname>
> > > QT4_IM_MODULE=xim
> > > QT_IM_MODULE=ibus
> > > QT_QPA_PLATFORMTHEME=appmenu-qt5
> > > SELINUX_INIT=YES
> > > SESSION=ubuntu
> > > SESSIONTYPE=gnome-session
> > >
> > >
> >
> SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1420,unix/<hostname>:/tmp/.ICE-unix/1420
> > > SHELL=/bin/bash
> > > SHLVL=0
> > > SSH_AUTH_SOCK=/run/user/1000/keyring-gsGwmn/ssh
> > > TEXTDOMAIN=im-config
> > > TEXTDOMAINDIR=/usr/share/locale/
> > > TZ=:/etc/localtime
> > > UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1285
> > > USER=<hostname>
> > > XAUTHORITY=/home/<hostname>/.Xauthority
> > > XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
> > > XDG_CURRENT_DESKTOP=Unity
> > >
> > >
> >
> XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
> > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<hostname>
> > > XDG_MENU_PREFIX=gnome-
> > > XDG_RUNTIME_DIR=/run/user/1000
> > > XDG_SEAT=seat0
> > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
> > > XDG_SESSION_ID=c1
> > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
> > > XDG_VTNR=7
> > > XMODIFIERS=@im=ibus
> > >
> > > 2015-12-11 16:26 GMT+01:00 Gianluigi <bagonergi at ...626...>:
> > >
> > > > Why this simple code works only between 1 and 12 of each month?
> > > >
> > > > Public Sub DateChooser1_Change()
> > > >   Dim d As Date, s As Integer, valore As String
> > > >
> > > >   d = Date(DateChooser1.Value)
> > > >   valore = CString(d)
> > > >   s = Week(d)
> > > >   TextBox1.Text = s & " - " & CString(Val(valore))
> > > > End
> > > >
> > > > Regards
> > > > Gianluigi
> > > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list