Sponsored Content
Top Forums UNIX for Dummies Questions & Answers unsure if this is a unix datestamp??? can you guys tell? Post 302182072 by uselessprog on Saturday 5th of April 2008 09:31:25 AM
Old 04-05-2008
unsure if this is a unix datestamp??? can you guys tell?

hi everyone im new here and im hoping you could help me out here. Yesterday i removed a time stamp from a program that i am using.This timestamp should contain a date of 04/04/2008 with a time sometime in that day.

the stamp in hex is 7C FE 2B 04 DA 4E E3 40

ive looked everywhere and im totally stumped, is the date stored in some sort of unix format?

i would appreciate any input from you guy or any advice how i could find out format this timestamp is stored in.

cheers
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cp files that have a particular datestamp

Hello all I'm trying to copy all files in the current directory with yesterday's date to another directory using a single command . I searched the faqs but all the examples listed out involve only the find command.I tried to do something like but it does'nt seem to work. cp < ls -l |grep... (2 Replies)
Discussion started by: luft
2 Replies

2. Linux

A little unsure of something

If i want to display a banner that says Happy Bday, but I want to put that output banner into a file called bday4me, could I use the command (echo) or (banner -w35) Happy Bday >> bday4me would this command work? Sorry for asking, but i'm at home just now and don't have access to a UNIX... (3 Replies)
Discussion started by: Cisco
3 Replies

3. Shell Programming and Scripting

Substring/Instring of a string with datestamp

Hi, I have just started working on unix today. I want to get the instring of a string (filename). Eg. JAN_BILS_PRINT_01-01-08.txt Now i want to extract the datestamp from the file and convert the date to the format mm/dd/yyyy. How do i do this? Please hel pme with this. Regards,... (10 Replies)
Discussion started by: bhalotias
10 Replies

4. Shell Programming and Scripting

simple help in datestamp

i have a problem here TZ=`date +%Z`+0 ;a=`date +%b%e`----gives me Feb27 but i want Feb 27.there should be a single space b/w Feb and 27.... can anyone tell me how to resolve this issues........ (1 Reply)
Discussion started by: ali560045
1 Replies

5. Post Here to Contact Site Administrators and Moderators

Unsure what caused an infraction on my account.

Hey everyone. I wasn't sure what it meant when my profile said it had 1 infraction against it, so I thought I'd check it out. Unfortunately, I can't find the post in question. The date from the post in question is 07-09-2008 at 04:24 AM, but from what I can tell is marked as 'private'. I'd... (2 Replies)
Discussion started by: glen.barber
2 Replies

6. Shell Programming and Scripting

move datestamp to beginning of line where available

My current output is as follows: All Day Event Someone's Birthday Class 7:00 PM Pick up dry cleaning 1:00 PM Wake up 8:00 AM I'd like the output to remain the same but have the times moved to the beginning of the line with a hyphen after it so it would look like, All Day Event... (3 Replies)
Discussion started by: chrish
3 Replies

7. Shell Programming and Scripting

parsing a file of datestamp

i have a file which consists of the timestamp fields in the format first packet: Sat Mar 5 16:14:33.678747 2011 first packet: Sat Mar 5 16:14:34.035362 2011 first packet: Sat Mar 5 16:14:39.805442 2011 first packet: Sat Mar 5 16:14:43.934197 2011 first packet: ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies

8. Shell Programming and Scripting

Unsure of sed notation (nu\\t.\*)

This piece of code is in a shell script I'm trying to modify to run on my system. sed s:nu\\t.\*:"nu=0" It's clearly a substitute script which replaces nu\\t.\* with nu = 0. What exactly does nu\\t.\* demarcate though-- I thought it was just the previous nu = xxxxx (which existed and is... (3 Replies)
Discussion started by: czar21
3 Replies

9. UNIX for Beginners Questions & Answers

Unsure why access time on a directory change isn't changing

Hello... And thanks in advance for any help anyone can offer me I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I... (4 Replies)
Discussion started by: bodisha
4 Replies
Glib::BookmarkFile(3pm) 				User Contributed Perl Documentation				   Glib::BookmarkFile(3pm)

NAME
Glib::BookmarkFile - Parser for bookmark files SYNOPSIS
use Glib; $date .= $_ while (<DATA>); $b = Glib::BookmarkFile->new; $b->load_from_data($data); $uri = 'file:///some/path/to/a/file.txt'; if ($b->has_item($uri)) { $title = $b->get_title($uri); $desc = $b->get_description($uri); print "Bookmark for `$uri' ($title): "; print " $desc "; } 0; __DATA__ <?xml version="1.0" encoding="UTF-8"?> <xbel version="1.0" xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks" xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"> <bookmark href="file:///tmp/test-file.txt" added="2006-03-22T18:54:00Z" modified="2006-03-22T18:54:00Z" visited="2006-03-22T18:54:00Z"> <title>Test File</title> <desc>Some test file</desc> <info> <metadata owner="http://freedesktop.org"> <mime:mime-type type="text/plain"/> <bookmark:applications> <bookmark:application name="Gedit" exec="gedit %u" timestamp="1143053640" count="1"/> </bookmark:applications> </metadata> </info> </bookmark> </xbel> DESCRIPTION
Glib::BookmarkFile lets you parse, edit or create files containing lists of bookmarks to resources pointed to by URIs, with some meta-data bound to them, following the Desktop Bookmark Specification. The recent files support inside GTK+ uses this type of files to store the list of recently used files. The syntax of bookmark files is described in detail in the Desktop Bookmarks Specification, here is a quick summary: bookmark files use a subclass of the XML Bookmark Exchange Language (XBEL) document format, defining meta-data such as the MIME type of the resource pointed by a bookmark, the list of applications that have registered the same URI and the visibility of the bookmark. METHODS
bookmarkfile = Glib::BookmarkFile->new $bookmark_file->add_application ($uri, $name, $exec) o $uri (string) o $name (string or undef) o $exec (string or undef) Adds the application with $name and $exec to the list of applications that have registered a bookmark for $uri into $bookmark_file. Every bookmark inside a "Glib::BookmarkFile" must have at least an application registered. Each application must provide a name, a command line useful for launching the bookmark, the number of times the bookmark has been registered by the application and the last time the application registered this bookmark. If $name is undef, the name of the application will be the same returned by Glib::get_application_name(); if $exec is undef, the command line will be a composition of the program name as returned by Glib::get_prgname() and the "%u" modifier, which will be expanded to the bookmark's URI. This function will automatically take care of updating the registrations count and timestamping in case an application with the same $name had already registered a bookmark for $uri inside the bookmark file. If no bookmark for $uri is found one is created. $bookmark_file->add_group ($uri, $group) o $uri (string) o $group (string) Adds $group to the list of groups to which the bookmark for $uri belongs to. If no bookmark for $uri is found one is created. unix timestamp = $bookmark_file->get_added ($uri) o $uri (string) $bookmark_file->set_added ($uri, $value) o $uri (string) o $value (unix timestamp) Sets the time the bookmark for $uri was added. If no bookmark for $uri is found one is created. ($exec, $count, $stamp) = $bookmark_file->get_app_info ($uri, $name) o $uri (string) o $name (string) Gets the registration information of $name for the bookmark for $uri. See Glib::BookmarkFile::set_app_info() for more information about the returned data. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_app_info ($uri, $name, $exec, $count, $stamp) o $uri (string) o $name (string) o $exec (string) o $count (integer) o $stamp (unix timestamp) Sets the meta-data of application $name inside the list of applications that have registered a bookmark for $uri inside $bookmark_file. You should rarely use this method; use Glib::BookmarkFile::add_application() and Glib::BookmarkFile::remove_application() instead. $name can be any UTF-8 encoded string used to identify an application. $exec can have one of these two modifiers: "%f", which will be expanded as the local file name retrieved from the bookmark's URI; "%u", which will be expanded as the bookmark's URI. The expansion is done automatically when retrieving the stored command line using the Glib::BookmarkFile::get_app_info() method. $count is the number of times the application has registered the bookmark; if it is < 0, the current registration count will be increased by one, if it is 0, the application with $name will be removed from the list of registered applications. $stamp is the Unix time of the last registration, as returned by time(); if it is -1, the current time will be used. If you try to remove an application by setting its registration count to zero, and no bookmark for $uri is found, %FALSE is returned and an exception is fired. May croak with a Glib::Error in $@ on failure. list = $bookmark_file->get_applications ($uri) o $uri (string) Retrieves the names of the applications that have registered the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->get_description ($uri) o $uri (string) Gets the description of the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_description ($uri, $description) o $uri (string) o $description (string) Sets the description of the bookmark for $uri. If no bookmark for $uri is found one is created. list = $bookmark_file->get_groups ($uri) o $uri (string) Retrieves the list of group names of the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_groups ($uri, ...) o $uri (string) o ... (list) one or more group names Sets a list of group names for the item with URI $uri. Each previously set group name list is removed. If no bookmark for $uri is found one is created. boolean = $bookmark_file->has_application ($uri, $name) o $uri (string) o $name (string) Checks whether the bookmark for $uri inside $bookmark_file has been registered by application $name. May croak with a Glib::Error in $@ on failure. boolean = $bookmark_file->has_group ($uri, $group) o $uri (string) o $group (string) Checks whether $group appears in the list of groups to which the bookmark for $uri belongs to. May croak with a Glib::Error in $@ on failure. boolean = $bookmark_file->has_item ($uri) o $uri (string) Looks whether the bookmark file has a bookmark for $uri. ($href, $mime_type) = $bookmark_file->get_icon ($uri) o $uri (string) Gets the icon of the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_icon ($uri, $href, $mime_type) o $uri (string) o $href (string or undef) o $mime_type (string or undef) Sets the icon for the bookmark for $uri. If $href is undef, unsets the currently set icon. boolean = $bookmark_file->get_is_private ($uri) o $uri (string) May croak with a Glib::Error in $@ on failure. $bookmark_file->set_is_private ($uri, $is_private) o $uri (string) o $is_private (boolean) $bookmark_file->load_from_data ($buf) o $buf (scalar) Parses a string containing a bookmark file structure. May croak with a Glib::Error in $@ on failure. ($full_path) = $bookmark_file->load_from_data_dirs ($file) o $file (localized file name) Parses a bookmark file, searching for it inside the data directories. If a file is found, it returns the full path. May croak with a Glib::Error in $@ on failure. $bookmark_file->load_from_file ($file) o $file (localized file name) Parses a bookmark file. May croak with a Glib::Error in $@ on failure. string = $bookmark_file->get_mime_type ($uri) o $uri (string) Gets the MIME type of the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_mime_type ($uri, $mime_type) o $uri (string) o $mime_type (string) Sets the MIME type of the bookmark for $uri. If no bookmark for $uri is found one is created. unix timestamp = $bookmark_file->get_modified ($uri) o $uri (string) $bookmark_file->set_modified ($uri, $value) o $uri (string) o $value (unix timestamp) Sets the time the bookmark for $uri was last modified. If no bookmark for $uri is found one is created. $bookmark_file->move_item ($old_uri, $new_uri) o $old_uri (string) o $new_uri (string or undef) Changes the URI of a bookmark item from $old_uri to $new_uri. Any existing bookmark for $new_uri will be overwritten. If $new_uri is undef, then the bookmark is removed. May croak with a Glib::Error in $@ on failure. $bookmark_file->remove_application ($uri, $name) o $uri (string) o $name (string) Removes application registered with $name from the list of applications that have registered a bookmark for $uri inside $bookmark_file. May croak with a Glib::Error in $@ on failure. $bookmark_file->remove_group ($uri, $group) o $uri (string) o $group (string) Removes $group from the list of groups to which the bookmark for $uri belongs to. May croak with a Glib::Error in $@ on failure. $bookmark_file->remove_item ($uri) o $uri (string) Removes the bookmark for $uri from the bookmark file. May croak with a Glib::Error in $@ on failure. integer = $bookmark_file->get_size Gets the number of bookmarks inside the bookmark file. $bookmark_file->get_title ($uri, $title) o $uri (string) Gets the title of the bookmark for $uri. May croak with a Glib::Error in $@ on failure. $bookmark_file->set_title ($uri, $title) o $uri (string) o $title (string) Sets the title of the bookmark for $uri. If no bookmark for $uri is found one is created. string = $bookmark_file->to_data Returns the bookmark file as a string. May croak with a Glib::Error in $@ on failure. $bookmark_file->to_file ($file) o $file (localized file name) Saves the contents of a bookmark file into a file. The write operation is guaranteed to be atomical by writing the contents of the bookmark file to a temporary file and then moving the file to the target file. May croak with a Glib::Error in $@ on failure. list = $bookmark_file->get_uris Returns the URI of all the bookmarks in the bookmark file. unix timestamp = $bookmark_file->get_visited ($uri) o $uri (string) $bookmark_file->set_visited ($uri, $value) o $uri (string) o $value (unix timestamp) Sets the time the bookmark for $uri was last visited. If no bookmark for $uri is found one is created. SEE ALSO
Glib COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Glib for a full notice. perl v5.14.2 2012-05-24 Glib::BookmarkFile(3pm)
All times are GMT -4. The time now is 03:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy