04-27-2017
You filed this question in the Linux forum. What operating system (including the distribution and version number) are you using?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi friends,
this is my first time with this type of script so please pardon my ignorance. i have this script in which a piece of code needs to be added which can have the Asia/Hong kong time as well. system date and format is GMT so no problem with GMT and even EST is covered..i have ato add new... (5 Replies)
Discussion started by: xejatt
5 Replies
2. Shell Programming and Scripting
I have a file named "suspected" with series of line like these :
{'protocol': 17, 'service': 'BitTorrent KRPC', 'server': '219.78.120.166', 'client_port': 52044, 'client': '10.64.68.44', 'server_port': 8291, 'time': 1226506312L, 'serverhostname': ''}
{'protocol': 17, 'service': 'BitTorrent... (3 Replies)
Discussion started by: rk4k
3 Replies
3. Shell Programming and Scripting
Hi guys,
I know that this topic has been discuss numerous times, and I have search the net and this forum for it.
However, non able to address the problem I faced so far.
I am on Solaris Platform and unable to install additional packages like the GNU date and gawk to make use of their... (5 Replies)
Discussion started by: DrivesMeCrazy
5 Replies
4. Shell Programming and Scripting
Hi, I need to convert a date in the format
yyyy-mm-dd to unix seconds, shell script or perl would be ok
since there is no hour/second, we can assume 12am every day
thanks in advance
funksen (4 Replies)
Discussion started by: funksen
4 Replies
5. Shell Programming and Scripting
Hi,
I need to convert a number representing time in UTC seconds to a date. Ex:
3BE0082C --> Oct 31 2001 15:31:08
I have tried the following perl command but it gives a different answer?
$ perl -e 'print scalar localtime(shift), "\n"' 3BE00B2C
Thu Jan 1 03:00:03 1970
Any ideas? Thanks. :) (10 Replies)
Discussion started by: GNMIKE
10 Replies
6. Shell Programming and Scripting
Hi,
Is there any easy way to convert date time(stored in shell variable ) to epoch time in solaris box? As +%s is working on linux but not on solaris, also -d option is not working.
Any suggestion please? (6 Replies)
Discussion started by: anshuman0507
6 Replies
7. Shell Programming and Scripting
Looking for some help and usually when I do a search this site comes up. Hopefully someone can give me a little direction as to how to use one of these two commands to achieve what I'm trying to do.
What am I trying to do?
I need to take the time value in epoch format returned from the... (5 Replies)
Discussion started by: minigts
5 Replies
8. Shell Programming and Scripting
Need assistance in converting an epoch time to Julian date
To get epoch
perl -e 'use Time::Local; print timelocal(1,5,2,12,10,2008), "\n"' (3 Replies)
Discussion started by: ajayram_arya
3 Replies
9. Shell Programming and Scripting
Hello Team,
I am stuck in getting the required output in the following case. Please help.
My input file is
aa|08/01/2016
bb|08/15/2016
I wish to convert the file into
aa|epoch time
bb|epoch time
I am using following code: (3 Replies)
Discussion started by: angshuman
3 Replies
10. Shell Programming and Scripting
Hi,
I have a data file where the timestamp is in the style of:
2016-10-11 07:01:23.375-500
which is yyyy-mm-dd hh-mm-ss-000 then time conversion from UTC
What i need to do is convert these timestamps from the above format to a the Serial Date format (i.e 42,654.2920446 )
now.. if... (14 Replies)
Discussion started by: AshBax
14 Replies
LEARN ABOUT OPENDARWIN
select_mouse_cursor
select_mouse_cursor(3alleg4) Allegro manual select_mouse_cursor(3alleg4)
NAME
select_mouse_cursor - Tells Allegro to select software or hardware cursor drawing.
SYNOPSIS
#include <allegro.h>
void select_mouse_cursor(int cursor);
DESCRIPTION
This function allows you to use the operating system's native mouse cursors rather than some custom cursor. You will need to enable this
functionality by calling enable_hardware_cursor() beforehand. If the operating system does not support this functionality, or if it has not
been enabled, then Allegro will substitute its own cursor images. You can change these substitute images using set_mouse_cursor_bitmap().
Note that the effects of this function are not apparent until show_mouse() is called.
To know whether the operating system's native cursor is being used, or if Allegro has made a substitution, you can check the GFX_SYS-
TEM_CURSOR flag in gfx_capabilities after calling show_mouse().
The cursor argument selects the type of cursor to be displayed:
MOUSE_CURSOR_NONE Selects an invisible mouse cursor. In that sense, it is similar to calling show_mouse(NULL);
MOUSE_CURSOR_ALLEGRO Selects the custom Allegro cursor, i.e. the one that you set with set_mouse_sprite().
MOUSE_CURSOR_ARROW The operating system default arrow cursor.
MOUSE_CURSOR_BUSY The operating system default `busy' cursor (hourglass).
MOUSE_CURSOR_QUESTION The operating system default `question' cursor (arrow with question mark).
MOUSE_CURSOR_EDIT The operating system default `edit' cursor (vertical bar).
Example:
/* initialize mouse sub-system */
install_mouse();
enable_hardware_cursor();
/* Set busy pointer */
select_mouse_cursor(MOUSE_CURSOR_BUSY);
show_mouse(screen);
/* Initialize stuff */
...
/* Set normal arrow pointer */
select_mouse_cursor(MOUSE_CURSOR_ARROW);
SEE ALSO
install_mouse(3alleg4), show_mouse(3alleg4), set_mouse_sprite(3alleg4), gfx_capabilities(3alleg4), enable_hardware_cursor(3alleg4),
set_mouse_cursor_bitmap(3alleg4), show_os_cursor(3alleg4), exsyscur(3alleg4)
Allegro version 4.4.2 select_mouse_cursor(3alleg4)